x86: Expose the interrupt vector in faults

This patch allows a hardware virtualized CPU to discover which interrupt
to deliver to the guest.
This commit is contained in:
Andreas Sandberg 2013-09-18 11:28:24 +02:00
parent 30c588a483
commit 15733e9b33

View file

@ -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