diff options
| author | 2019-03-04 18:44:53 -0500 | |
|---|---|---|
| committer | 2019-03-04 18:44:53 -0500 | |
| commit | cc92c054ec825c7b40518fdc90a0c9a307567303 (patch) | |
| tree | 100134f312b1039bafa79bd3a9bf920e8d52d8be /src/core/memory.cpp | |
| parent | Merge pull request #2165 from ReinUsesLisp/unbind-tex (diff) | |
| parent | Memory: don't lock hle mutex in memory read/write (diff) | |
| download | yuzu-cc92c054ec825c7b40518fdc90a0c9a307567303.tar.gz yuzu-cc92c054ec825c7b40518fdc90a0c9a307567303.tar.xz yuzu-cc92c054ec825c7b40518fdc90a0c9a307567303.zip | |
Merge pull request #2185 from FearlessTobi/port-4630
Port citra-emu/citra#4630: "Memory: don't lock hle mutex in memory read/write"
Diffstat (limited to 'src/core/memory.cpp')
| -rw-r--r-- | src/core/memory.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp index f809567b6..ec279cef8 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp | |||
| @@ -171,9 +171,6 @@ T Read(const VAddr vaddr) { | |||
| 171 | return value; | 171 | return value; |
| 172 | } | 172 | } |
| 173 | 173 | ||
| 174 | // The memory access might do an MMIO or cached access, so we have to lock the HLE kernel state | ||
| 175 | std::lock_guard<std::recursive_mutex> lock(HLE::g_hle_lock); | ||
| 176 | |||
| 177 | PageType type = current_page_table->attributes[vaddr >> PAGE_BITS]; | 174 | PageType type = current_page_table->attributes[vaddr >> PAGE_BITS]; |
| 178 | switch (type) { | 175 | switch (type) { |
| 179 | case PageType::Unmapped: | 176 | case PageType::Unmapped: |
| @@ -204,9 +201,6 @@ void Write(const VAddr vaddr, const T data) { | |||
| 204 | return; | 201 | return; |
| 205 | } | 202 | } |
| 206 | 203 | ||
| 207 | // The memory access might do an MMIO or cached access, so we have to lock the HLE kernel state | ||
| 208 | std::lock_guard<std::recursive_mutex> lock(HLE::g_hle_lock); | ||
| 209 | |||
| 210 | PageType type = current_page_table->attributes[vaddr >> PAGE_BITS]; | 204 | PageType type = current_page_table->attributes[vaddr >> PAGE_BITS]; |
| 211 | switch (type) { | 205 | switch (type) { |
| 212 | case PageType::Unmapped: | 206 | case PageType::Unmapped: |