Get rid of the Unallocated thread context state.
[gem5.git] / src / arch / sparc / mmaped_ipr.hh
index d87d127b07c2c50ad456b90adfd5ad4857ac9376..b11c1675484af0979ebda50848c572160ba9eaae 100644 (file)
@@ -37,6 +37,7 @@
  * ISA-specific helper functions for memory mapped IPR accesses.
  */
 
+#include "config/full_system.hh"
 #include "cpu/thread_context.hh"
 #include "mem/packet.hh"
 #include "arch/sparc/tlb.hh"
@@ -47,14 +48,22 @@ namespace SparcISA
 inline Tick
 handleIprRead(ThreadContext *xc, Packet *pkt)
 {
+#if FULL_SYSTEM
     return xc->getDTBPtr()->doMmuRegRead(xc, pkt);
+#else
+    panic("Shouldn't have a memory mapped register in SE\n");
+#endif
 }
 
 
 inline Tick
 handleIprWrite(ThreadContext *xc, Packet *pkt)
 {
+#if FULL_SYSTEM
     return xc->getDTBPtr()->doMmuRegWrite(xc, pkt);
+#else
+    panic("Shouldn't have a memory mapped register in SE\n");
+#endif
 }