diff options
| author | Julian Blake Kongslie | 2022-06-27 18:29:04 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-06-27 18:29:04 -0700 |
| commit | 91adc28662d5ad75c7f8435d1e3aefbe4e696d10 (patch) | |
| tree | 7815ea0a5772e7a668f1ef011b2759b109c578f8 | |
| parent | IWYU check on top-level headers. (diff) | |
| download | issim-91adc28662d5ad75c7f8435d1e3aefbe4e696d10.tar.xz | |
Use megabyte-sized pages in PagedMem by default.
Diffstat (limited to '')
| -rw-r--r-- | aisa/simple-models.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aisa/simple-models.h b/aisa/simple-models.h index 89e8752..62b5388 100644 --- a/aisa/simple-models.h +++ b/aisa/simple-models.h | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | 14 | ||
| 15 | namespace aisa { | 15 | namespace aisa { |
| 16 | 16 | ||
| 17 | template<unsigned int PAGE_BITS=10> struct PagedMem { | 17 | template<unsigned int PAGE_BITS=20> struct PagedMem { |
| 18 | using page_t = std::array<byte_t, 1 << PAGE_BITS>; | 18 | using page_t = std::array<byte_t, 1 << PAGE_BITS>; |
| 19 | 19 | ||
| 20 | static const addr_t PAGE_SIZE = 1 << PAGE_BITS; | 20 | static const addr_t PAGE_SIZE = 1 << PAGE_BITS; |
