diff options
author | bd <bdunahu@operationnull.com> | 2025-03-09 23:49:29 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-09 23:49:29 -0400 |
commit | 7506edbc6b8c761c3e810f09fd88c1dc7ab3e717 (patch) | |
tree | b5a53b6e85f59392267a8a26e631c00445c30e94 /src/storage/dram.cc | |
parent | 05ce888aa6dd2fba5e295c15497cb80bbc21c9f1 (diff) |
Properly set cache metadata when a value is loaded
Diffstat (limited to 'src/storage/dram.cc')
-rw-r--r-- | src/storage/dram.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/storage/dram.cc b/src/storage/dram.cc index 9dab4ed..441f10b 100644 --- a/src/storage/dram.cc +++ b/src/storage/dram.cc @@ -57,13 +57,16 @@ Response Dram::read( Accessor accessor, int address, std::array<signed int, LINE_SIZE> &data) { Response r = WAIT; + if (this->requester == IDLE) this->requester = accessor; + if (this->requester == accessor) { if (this->wait_time == 0) { this->do_read(data, address); r = OK; } } + return r; } |