From 1126b91af5bd2d4477b3e78e8c648b3a512b24f7 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Thu, 7 Feb 2019 18:26:45 +0100 Subject: 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 --- qtmips_machine/machinedefs.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'qtmips_machine/machinedefs.h') 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 -- cgit v1.2.3