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/cpu/base.cc | |
parent | 3f9e2350a1c909f141c09bb409a381957853678c (diff) | |
download | gem5-d9794784bac54483660e438980d592b6ffe5c311.tar.xz |
CPU: Add a setCPU function to the interrupt objects.
Diffstat (limited to 'src/cpu/base.cc')
-rw-r--r-- | src/cpu/base.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/base.cc b/src/cpu/base.cc index 29095f12a..06fcebad8 100644 --- a/src/cpu/base.cc +++ b/src/cpu/base.cc @@ -194,6 +194,8 @@ BaseCPU::BaseCPU(Params *p) } } #if FULL_SYSTEM + interrupts->setCPU(this); + profileEvent = NULL; if (params()->profile) profileEvent = new ProfileEvent(this, params()->profile); @@ -348,6 +350,7 @@ BaseCPU::takeOverFrom(BaseCPU *oldCPU, Port *ic, Port *dc) #if FULL_SYSTEM interrupts = oldCPU->interrupts; + interrupts->setCPU(this); for (int i = 0; i < threadContexts.size(); ++i) threadContexts[i]->profileClear(); |