diff options
author | bd <bdunahu@operationnull.com> | 2025-03-06 00:34:35 -0500 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-06 00:34:35 -0500 |
commit | 3322aa0845f7fe9cc98aa4e429bd5ecf72a5c27e (patch) | |
tree | 75f627ee8e75c0763ab8b048496464c60e486490 /src/storage/storage.cc | |
parent | 20fe698a4074df4abe02f14a1a14481770e90abc (diff) |
dram write (no delay, no accessor tracking
Diffstat (limited to 'src/storage/storage.cc')
-rw-r--r-- | src/storage/storage.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/storage/storage.cc b/src/storage/storage.cc index 49d8e7e..a9a883a 100644 --- a/src/storage/storage.cc +++ b/src/storage/storage.cc @@ -1,10 +1,12 @@ #include "storage.h" +#include "definitions.h" #include <algorithm> -std::vector<std::array<signed int, 4>> Storage::view(int base, int lines) +std::vector<std::array<signed int, LINE_SIZE>> +Storage::view(int base, int lines) { - base = (base / 4) * 4; - std::vector<std::array<signed int, 4>> ret(lines + 1); + base = (base / LINE_SIZE) * LINE_SIZE; + std::vector<std::array<signed int, LINE_SIZE>> ret(lines + 1); std::copy( this->data->begin() + base, this->data->begin() + base + lines, ret.begin()); |