summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/x86/faults.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/arch/x86/faults.hh b/src/arch/x86/faults.hh
index 637f131e0..86b633471 100644
--- a/src/arch/x86/faults.hh
+++ b/src/arch/x86/faults.hh
@@ -89,6 +89,14 @@ namespace X86ISA
StaticInstPtr inst = StaticInst::nullStaticInstPtr);
virtual std::string describe() const;
+
+ public:
+ /**
+ * Get the vector of an interrupt.
+ *
+ * @return interrupt vector number.
+ */
+ virtual uint8_t getVector() const { return vector; }
};
// Base class for x86 faults which behave as if the underlying instruction