diff options
author | bd <bdunahu@operationnull.com> | 2025-03-08 15:19:57 -0500 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-08 15:19:57 -0500 |
commit | dcc22079fc1c455df70ab1263ea09400e4c948d6 (patch) | |
tree | a55d0f640d9eb94c58ac25cf5c551c0d7506e43e /src/storage/dram.cc | |
parent | 8fc631090fd88a7e8e62f284c3dfd3c515d14613 (diff) |
Remove queue in storage.h
Diffstat (limited to 'src/storage/dram.cc')
-rw-r--r-- | src/storage/dram.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/storage/dram.cc b/src/storage/dram.cc index 5b4c63b..7197668 100644 --- a/src/storage/dram.cc +++ b/src/storage/dram.cc @@ -23,9 +23,10 @@ Response Dram::write(Accessor accessor, signed int data, int address) r = OK; } else { /* Do this first--then process the first cycle immediately. */ - this->deque.push_back(accessor); + if (this->requester == IDLE) + this->requester = accessor; - if (this->deque.front() == accessor) { + if (this->requester == accessor) { if (this->wait_time == 0) { this->do_write(data, address); r = OK; |