diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-12 16:18:58 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-12 16:18:58 +0100 |
commit | df292aade4d174a7a5824f463b3a1dccf20e6c54 (patch) | |
tree | 85d26d5a0d5101f5caae6dcde20b515f98bcbb06 /qtmips_machine/qtmipsmachine.cpp | |
parent | fc27072b451dd8385401fadf198db69b0e87c72c (diff) | |
download | qtmips-df292aade4d174a7a5824f463b3a1dccf20e6c54.tar.gz qtmips-df292aade4d174a7a5824f463b3a1dccf20e6c54.tar.bz2 qtmips-df292aade4d174a7a5824f463b3a1dccf20e6c54.zip |
Make memory and program listing editable.
Instruction parsing is rough and does not support branch offset computation.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/qtmipsmachine.cpp')
-rw-r--r-- | qtmips_machine/qtmipsmachine.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |