From df292aade4d174a7a5824f463b3a1dccf20e6c54 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Tue, 12 Feb 2019 16:18:58 +0100 Subject: Make memory and program listing editable. Instruction parsing is rough and does not support branch offset computation. Signed-off-by: Pavel Pisa --- qtmips_machine/qtmipsmachine.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'qtmips_machine/qtmipsmachine.cpp') diff --git a/qtmips_machine/qtmipsmachine.cpp b/qtmips_machine/qtmipsmachine.cpp index 382a9f2..69deeb1 100644 --- a/qtmips_machine/qtmipsmachine.cpp +++ b/qtmips_machine/qtmipsmachine.cpp @@ -114,6 +114,10 @@ const Memory *QtMipsMachine::memory() { return mem; } +Memory *QtMipsMachine::memory_rw() { + return mem; +} + const Cache *QtMipsMachine::cache_program() { return cch_program; } @@ -122,6 +126,10 @@ const Cache *QtMipsMachine::cache_data() { return cch_data; } +Cache *QtMipsMachine::cache_data_rw() { + return cch_data; +} + const Core *QtMipsMachine::core() { return cr; } -- cgit v1.2.3