CPU: Add a getInterruptController function
This commit is contained in:
parent
ff29e00112
commit
0c3848732e
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue