aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/instruction.cpp
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-04 13:19:10 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-04 13:19:10 +0100
commit11e55482f80e5bf7df19f845c2d4faf5a9a6010c (patch)
treeed6e21378212c2386c976367200584ea8c46f8e2 /qtmips_machine/instruction.cpp
parentfed3a4f559984ec77961f6d5556e183db6f41a2d (diff)
downloadqtmips-11e55482f80e5bf7df19f845c2d4faf5a9a6010c.tar.gz
qtmips-11e55482f80e5bf7df19f845c2d4faf5a9a6010c.tar.bz2
qtmips-11e55482f80e5bf7df19f845c2d4faf5a9a6010c.zip
Primitive implementation of cache instruction.
When any variant of cache instruction is detected flush and invalidate whole data cache. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/instruction.cpp')
-rw-r--r--qtmips_machine/instruction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_machine/instruction.cpp b/qtmips_machine/instruction.cpp
index baae4bc..5743c69 100644
--- a/qtmips_machine/instruction.cpp
+++ b/qtmips_machine/instruction.cpp
@@ -103,7 +103,7 @@ static const struct InstructionMap instruction_map[] = {
IM_UNKNOWN, // 44
IM_UNKNOWN, // 45
{"SWR", IT_I, true, .flags = IMF_MEM},
- IM_UNKNOWN, // 47
+ {"CACHE", IT_I, true, .flags = IMF_MEM}, // 47
IM_UNKNOWN, // 48
IM_UNKNOWN, // 49
IM_UNKNOWN, // 50