diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-08 13:52:59 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-08 13:52:59 +0100 |
commit | 789186fd63fb3fb63af1d8875cbe43609321b9d8 (patch) | |
tree | af800264aeb46dc839b4d209833420f9de4f632b /qtmips_machine/memory.cpp | |
parent | 6b639c50c93e4a682b15dcdf20f3d46a47d68a64 (diff) | |
download | qtmips-789186fd63fb3fb63af1d8875cbe43609321b9d8.tar.gz qtmips-789186fd63fb3fb63af1d8875cbe43609321b9d8.tar.bz2 qtmips-789186fd63fb3fb63af1d8875cbe43609321b9d8.zip |
Implement LL and SC as simple load and store word. SC returns 1 unconditionally.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/memory.cpp')
-rw-r--r-- | qtmips_machine/memory.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qtmips_machine/memory.cpp b/qtmips_machine/memory.cpp index 79ac949..af9420b 100644 --- a/qtmips_machine/memory.cpp +++ b/qtmips_machine/memory.cpp @@ -123,6 +123,7 @@ std::uint32_t MemoryAccess::read_ctl(enum AccessControl ctl, std::uint32_t offse void MemoryAccess::sync() { } enum LocationStatus MemoryAccess::location_status(std::uint32_t address) const { + (void)address; return LOCSTAT_NONE; } |