summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2008-10-11 16:13:58 -0700
committerGabe Black <gblack@eecs.umich.edu>2008-10-11 16:13:58 -0700
commit0c3848732ee33cf14a80129f6cf7ee84d51c8bfb (patch)
treee0ddf57d435d191d2aaa9fea2773441681524477 /src/cpu
parentff29e001128ea43a4db2b1b72cc2bb68e63909d6 (diff)
downloadgem5-0c3848732ee33cf14a80129f6cf7ee84d51c8bfb.tar.xz
CPU: Add a getInterruptController function
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/base.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cpu/base.hh b/src/cpu/base.hh
index c2b78a675..7b7ad9be0 100644
--- a/src/cpu/base.hh
+++ b/src/cpu/base.hh
@@ -110,6 +110,12 @@ class BaseCPU : public MemObject
TheISA::Interrupts interrupts;
public:
+ TheISA::Interrupts *
+ getInterruptController()
+ {
+ return &interrupts;
+ }
+
virtual void post_interrupt(int int_num, int index);
virtual void clear_interrupt(int int_num, int index);
virtual void clear_interrupts();