projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30c588a
)
x86: Expose the interrupt vector in faults
author
Andreas Sandberg
<andreas@sandberg.pp.se>
Wed, 18 Sep 2013 09:28:24 +0000
(11:28 +0200)
committer
Andreas Sandberg
<andreas@sandberg.pp.se>
Wed, 18 Sep 2013 09:28:24 +0000
(11:28 +0200)
This patch allows a hardware virtualized CPU to discover which interrupt
to deliver to the guest.
src/arch/x86/faults.hh
patch
|
blob
|
history
diff --git
a/src/arch/x86/faults.hh
b/src/arch/x86/faults.hh
index 637f131e08cae72af0b48bd50c2dbf6b813ad81e..86b633471895165886208403653a08795dcb4639 100644
(file)
--- 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