diff options
author | bd <bdunahu@operationnull.com> | 2025-03-09 18:28:08 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-09 18:28:08 -0400 |
commit | 5cf5ebce233cc49cc04ac8c7713e12e87bab7798 (patch) | |
tree | f79d3f7c3edde913dadb739fe3d88ffba5e76641 /src/storage/cache.cc | |
parent | c9fc9df2d9079fcb6c8354ef758ef3c33a81741b (diff) |
Move do_write to dram.h, is_blocked flag
Diffstat (limited to 'src/storage/cache.cc')
-rw-r--r-- | src/storage/cache.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/storage/cache.cc b/src/storage/cache.cc index cf954b0..e0eaf58 100644 --- a/src/storage/cache.cc +++ b/src/storage/cache.cc @@ -24,8 +24,9 @@ Response Cache::write(Accessor accessor, signed int data, int address) this->requester = accessor; if (this->requester == accessor) { + fetch_resource(address); if (this->wait_time == 0) { - this->do_write(data, address); + // this->do_write(data, address); r = OK; } } @@ -34,3 +35,7 @@ Response Cache::write(Accessor accessor, signed int data, int address) } Response Cache::read(Accessor accessor, int address, std::array<signed int, LINE_SIZE>& data) { return WAIT; } + +void Cache::fetch_resource(int address) { + +} |