summaryrefslogtreecommitdiff
path: root/src/storage/dram.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/dram.cc')
-rw-r--r--src/storage/dram.cc5
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;