From 0c3848732ee33cf14a80129f6cf7ee84d51c8bfb Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 11 Oct 2008 16:13:58 -0700 Subject: [PATCH] CPU: Add a getInterruptController function --- src/cpu/base.hh | 6 ++++++ 1 file changed, 6 insertions(+) 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();