changeset 530a50b10ebe in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=530a50b10ebe
description:
x86: Expose the interrupt vector in faults
This patch allows a hardware virtualized CPU to discover which interrupt
to deliver to the guest.
diffstat:
src/arch/x86/faults.hh | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diffs (18 lines):
diff -r ad7d5f966b74 -r 530a50b10ebe src/arch/x86/faults.hh
--- a/src/arch/x86/faults.hh Tue Sep 17 19:39:11 2013 -0500
+++ b/src/arch/x86/faults.hh Wed Sep 18 11:28:24 2013 +0200
@@ -89,6 +89,14 @@
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
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev