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:
parent
30c588a483
commit
15733e9b33
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue