CPU: Add a getInterruptController function

This commit is contained in:
Gabe Black 2008-10-11 16:13:58 -07:00
parent ff29e00112
commit 0c3848732e

View file

@ -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();