diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-01-25 20:29:03 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-01-25 20:29:03 -0800 |
commit | d9794784bac54483660e438980d592b6ffe5c311 (patch) | |
tree | f51e0e97d1721bf8defd1a75342d318fcaf71b80 /src/arch/x86 | |
parent | 3f9e2350a1c909f141c09bb409a381957853678c (diff) | |
download | gem5-d9794784bac54483660e438980d592b6ffe5c311.tar.xz |
CPU: Add a setCPU function to the interrupt objects.
Diffstat (limited to 'src/arch/x86')
-rw-r--r-- | src/arch/x86/interrupts.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/arch/x86/interrupts.hh b/src/arch/x86/interrupts.hh index 8c7316217..c5e3bde0d 100644 --- a/src/arch/x86/interrupts.hh +++ b/src/arch/x86/interrupts.hh @@ -69,6 +69,7 @@ #include "sim/eventq.hh" class ThreadContext; +class BaseCPU; namespace X86ISA { @@ -182,6 +183,8 @@ class Interrupts : public BasicPioDevice, IntDev void requestInterrupt(uint8_t vector, uint8_t deliveryMode, bool level); + BaseCPU *cpu; + public: /* * Params stuff. @@ -189,6 +192,12 @@ class Interrupts : public BasicPioDevice, IntDev typedef X86LocalApicParams Params; void + setCPU(BaseCPU * newCPU) + { + cpu = newCPU; + } + + void setClock(Tick newClock) { clock = newClock; |