diff options
author | Andreas Sandberg <andreas@sandberg.pp.se> | 2013-09-18 11:28:24 +0200 |
---|---|---|
committer | Andreas Sandberg <andreas@sandberg.pp.se> | 2013-09-18 11:28:24 +0200 |
commit | 15733e9b33921236c2da2d4f6d1772bdd4d21069 (patch) | |
tree | cea7b93849160748b53d37574a1a6cbb69f1ae39 /src/arch | |
parent | 30c588a483138b781a94af20ffc97017cb1faa89 (diff) | |
download | gem5-15733e9b33921236c2da2d4f6d1772bdd4d21069.tar.xz |
x86: Expose the interrupt vector in faults
This patch allows a hardware virtualized CPU to discover which interrupt
to deliver to the guest.
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/faults.hh | 8 |
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 |