summaryrefslogtreecommitdiff
path: root/src/arch/sparc/interrupts.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-01-25 20:29:03 -0800
committerGabe Black <gblack@eecs.umich.edu>2009-01-25 20:29:03 -0800
commitd9794784bac54483660e438980d592b6ffe5c311 (patch)
treef51e0e97d1721bf8defd1a75342d318fcaf71b80 /src/arch/sparc/interrupts.hh
parent3f9e2350a1c909f141c09bb409a381957853678c (diff)
downloadgem5-d9794784bac54483660e438980d592b6ffe5c311.tar.xz
CPU: Add a setCPU function to the interrupt objects.
Diffstat (limited to 'src/arch/sparc/interrupts.hh')
-rw-r--r--src/arch/sparc/interrupts.hh12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/arch/sparc/interrupts.hh b/src/arch/sparc/interrupts.hh
index 66b3792b5..ec930e2b0 100644
--- a/src/arch/sparc/interrupts.hh
+++ b/src/arch/sparc/interrupts.hh
@@ -43,12 +43,20 @@ namespace SparcISA
class Interrupts : public SimObject
{
-
private:
+ BaseCPU * cpu;
+
uint64_t interrupts[NumInterruptTypes];
uint64_t intStatus;
public:
+
+ void
+ setCPU(BaseCPU * _cpu)
+ {
+ cpu = _cpu;
+ }
+
typedef SparcInterruptsParams Params;
const Params *
@@ -57,7 +65,7 @@ class Interrupts : public SimObject
return dynamic_cast<const Params *>(_params);
}
- Interrupts(Params * p) : SimObject(p)
+ Interrupts(Params * p) : SimObject(p), cpu(NULL)
{
clearAll();
}