From 3221a2c310afb6ed124d6b67afda110d4b8dcade Mon Sep 17 00:00:00 2001 From: bd Date: Thu, 6 Mar 2025 01:35:27 -0500 Subject: Allow sidedoor free access to writing memory --- src/storage/storage.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/storage/storage.cc') diff --git a/src/storage/storage.cc b/src/storage/storage.cc index a9a883a..024699b 100644 --- a/src/storage/storage.cc +++ b/src/storage/storage.cc @@ -12,3 +12,12 @@ Storage::view(int base, int lines) ret.begin()); return ret; } + +void Storage::do_write(signed data, int address) +{ + int line = address / LINE_SIZE; + int word = address % LINE_SIZE; + + this->servicing = IDLE; + this->data->at(line).at(word) = data; +} -- cgit v1.2.3