diff options
| author | Julian Blake Kongslie | 2022-11-11 16:28:55 -0800 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-11-11 16:28:55 -0800 |
| commit | db82579d3c023c441c895d26d32de3fa039eafa4 (patch) | |
| tree | e42ee62e50a5910dac54f6b57489876303b3d516 /memory/line.h | |
| parent | Slightly more ergonomic support for events without data (diff) | |
| download | nanosim-db82579d3c023c441c895d26d32de3fa039eafa4.tar.xz | |
Starting to write a real memory subsystem for biggolf.
Diffstat (limited to 'memory/line.h')
| -rw-r--r-- | memory/line.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/memory/line.h b/memory/line.h index 3377ec8..82b85f5 100644 --- a/memory/line.h +++ b/memory/line.h | |||
| @@ -7,9 +7,9 @@ | |||
| 7 | #include "infra/sim.h" | 7 | #include "infra/sim.h" |
| 8 | 8 | ||
| 9 | namespace memory { | 9 | namespace memory { |
| 10 | constexpr std::uint64_t LINE_BYTES_LOG2 = 4; | 10 | constexpr std::uint64_t LINE_BYTES_LOG2 = 2; |
| 11 | constexpr std::uint64_t LINE_BYTES = 1 << LINE_BYTES_LOG2; | 11 | constexpr std::uint64_t LINE_BYTES = 1 << LINE_BYTES_LOG2; |
| 12 | constexpr std::uint64_t LINE_BYTE_OFFSET_MASK = LINE_BYTES - 1; | 12 | constexpr std::uint64_t LINE_BYTE_OFFSET_MASK = LINE_BYTES - 1; |
| 13 | 13 | ||
| 14 | typedef std::array<std::uint8_t, LINE_BYTES> line; | 14 | typedef std::array<unsigned int, LINE_BYTES> line; |
| 15 | } | 15 | } |
