diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-12-16 11:47:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-16 11:47:03 -0500 |
| commit | fde8dc1652aa886210a9fa45bf2b859e14c11b37 (patch) | |
| tree | bbea883a222d556a8a917f70ec384cac5f6efcff /src/common/host_memory.h | |
| parent | b8f83aa4bf13f6783e31f190d530ef7be527bf49 (diff) | |
| parent | 8ad5f2c50648c333c3c46f89533e200a39bf6ca8 (diff) | |
Merge pull request #12358 from liamwhite/optimized-alloc
common: use memory holepunching when clearing memory
Diffstat (limited to 'src/common/host_memory.h')
| -rw-r--r-- | src/common/host_memory.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/host_memory.h b/src/common/host_memory.h index cebfacab2..747c5850c 100644 --- a/src/common/host_memory.h +++ b/src/common/host_memory.h @@ -48,6 +48,8 @@ public: void EnableDirectMappedAddress(); + void ClearBackingRegion(size_t physical_offset, size_t length, u32 fill_value); + [[nodiscard]] u8* BackingBasePointer() noexcept { return backing_base; } |
