aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/machinedefs.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-07 18:26:45 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-07 18:26:45 +0100
commit1126b91af5bd2d4477b3e78e8c648b3a512b24f7 (patch)
tree38b5f319914865b63258b99a8c01ab984fb2f6ba /qtmips_machine/machinedefs.h
parent780b3a9daa6a4c4eca9c095ad990334b43cc0dfa (diff)
downloadqtmips-1126b91af5bd2d4477b3e78e8c648b3a512b24f7.tar.gz
qtmips-1126b91af5bd2d4477b3e78e8c648b3a512b24f7.tar.bz2
qtmips-1126b91af5bd2d4477b3e78e8c648b3a512b24f7.zip
Added method to retrieve memory location status.
It can inform if given location is cached or if given range is invalid in address space. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/machinedefs.h')
-rw-r--r--qtmips_machine/machinedefs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/qtmips_machine/machinedefs.h b/qtmips_machine/machinedefs.h
index 7d21f69..2bf0556 100644
--- a/qtmips_machine/machinedefs.h
+++ b/qtmips_machine/machinedefs.h
@@ -93,6 +93,14 @@ enum AluOp : std::uint8_t {
ALU_OP_LAST // First impossible operation (just to be sure that we don't overflow)
};
+enum LocationStatus {
+ LOCSTAT_NONE = 0,
+ LOCSTAT_CACHED = 1 << 0,
+ LOCSTAT_DIRTY = 1 << 1,
+ LOCSTAT_READ_ONLY = 1 << 2,
+ LOCSTAT_ILLEGAL = 1 << 3,
+};
+
}
#endif // MACHINEDEFS_H