diff options
| author | 2021-05-30 23:21:39 -0700 | |
|---|---|---|
| committer | 2021-05-30 23:21:39 -0700 | |
| commit | f34176996e443cb79bd70ea2c72feeabac2b1430 (patch) | |
| tree | b1c649a914bd136248782a371202ab314bf18939 /src/common/page_table.cpp | |
| parent | Merge pull request #6344 from german77/update-libusb (diff) | |
| parent | core/memory: Check our memory fallbacks for out-of-bound behavior. (diff) | |
| download | yuzu-f34176996e443cb79bd70ea2c72feeabac2b1430.tar.gz yuzu-f34176996e443cb79bd70ea2c72feeabac2b1430.tar.xz yuzu-f34176996e443cb79bd70ea2c72feeabac2b1430.zip | |
Merge pull request #6385 from degasus/save_memory_access
core/memory: Check our memory fallbacks for out-of-bound behavior.
Diffstat (limited to 'src/common/page_table.cpp')
| -rw-r--r-- | src/common/page_table.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/page_table.cpp b/src/common/page_table.cpp index 8fd8620fd..9fffd816f 100644 --- a/src/common/page_table.cpp +++ b/src/common/page_table.cpp | |||
| @@ -14,6 +14,7 @@ void PageTable::Resize(size_t address_space_width_in_bits, size_t page_size_in_b | |||
| 14 | const size_t num_page_table_entries{1ULL << (address_space_width_in_bits - page_size_in_bits)}; | 14 | const size_t num_page_table_entries{1ULL << (address_space_width_in_bits - page_size_in_bits)}; |
| 15 | pointers.resize(num_page_table_entries); | 15 | pointers.resize(num_page_table_entries); |
| 16 | backing_addr.resize(num_page_table_entries); | 16 | backing_addr.resize(num_page_table_entries); |
| 17 | current_address_space_width_in_bits = address_space_width_in_bits; | ||
| 17 | } | 18 | } |
| 18 | 19 | ||
| 19 | } // namespace Common | 20 | } // namespace Common |