diff options
| author | 2023-11-19 11:21:53 +0200 | |
|---|---|---|
| committer | 2023-11-25 00:47:35 -0500 | |
| commit | 6de2edcca1624982e99a72741d4fa289dc9d7551 (patch) | |
| tree | 8c355b39a6f71e333ccc2f929816ce96e40d3f2c /src/common/host_memory.cpp | |
| parent | android: Add cpu bakend gui toggle (diff) | |
| download | yuzu-6de2edcca1624982e99a72741d4fa289dc9d7551.tar.gz yuzu-6de2edcca1624982e99a72741d4fa289dc9d7551.tar.xz yuzu-6de2edcca1624982e99a72741d4fa289dc9d7551.zip | |
Address some review comments
Diffstat (limited to 'src/common/host_memory.cpp')
| -rw-r--r-- | src/common/host_memory.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp index 8a869e558..f14077750 100644 --- a/src/common/host_memory.cpp +++ b/src/common/host_memory.cpp | |||
| @@ -409,11 +409,14 @@ static void* ChooseVirtualBase(size_t virtual_size) { | |||
| 409 | 409 | ||
| 410 | return MAP_FAILED; | 410 | return MAP_FAILED; |
| 411 | } | 411 | } |
| 412 | |||
| 412 | #else | 413 | #else |
| 414 | |||
| 413 | static void* ChooseVirtualBase(size_t virtual_size) { | 415 | static void* ChooseVirtualBase(size_t virtual_size) { |
| 414 | return mmap(nullptr, virtual_size, PROT_READ | PROT_WRITE, | 416 | return mmap(nullptr, virtual_size, PROT_READ | PROT_WRITE, |
| 415 | MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0); | 417 | MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0); |
| 416 | } | 418 | } |
| 419 | |||
| 417 | #endif | 420 | #endif |
| 418 | 421 | ||
| 419 | class HostMemory::Impl { | 422 | class HostMemory::Impl { |