From c4c985bfffca6f4b7dc9e08e275837f2b213b593 Mon Sep 17 00:00:00 2001 From: bd Date: Sat, 8 Mar 2025 15:19:57 -0500 Subject: Remove queue in storage.h --- src/storage/dram.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/storage/dram.cc') 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; -- cgit v1.2.3