From: Gabe Black Date: Sat, 11 Oct 2008 23:13:58 +0000 (-0700) Subject: CPU: Add a getInterruptController function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c3848732ee33cf14a80129f6cf7ee84d51c8bfb;p=gem5.git CPU: Add a getInterruptController function --- 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();