CPU: Add a getInterruptController function
authorGabe Black <gblack@eecs.umich.edu>
Sat, 11 Oct 2008 23:13:58 +0000 (16:13 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Sat, 11 Oct 2008 23:13:58 +0000 (16:13 -0700)
src/cpu/base.hh

index c2b78a6754cfe1df6d0bc7e7019977b4f7a988e8..7b7ad9be0efef8f8be4c546b3b1f509ce4cf2f3a 100644 (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();