changeset d9b69f03e7af in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=d9b69f03e7af
description:
        SPARC: Remove #if FULL_SYSTEMs from the ISA description.

diffstat:

 src/arch/sparc/isa/base.isa          |  25 ++++++++++---------------
 src/arch/sparc/isa/formats/unimp.isa |   4 ----
 2 files changed, 10 insertions(+), 19 deletions(-)

diffs (57 lines):

diff -r f81bcb16fa1b -r d9b69f03e7af src/arch/sparc/isa/base.isa
--- a/src/arch/sparc/isa/base.isa       Mon Sep 19 06:14:02 2011 -0700
+++ b/src/arch/sparc/isa/base.isa       Mon Sep 19 06:17:19 2011 -0700
@@ -560,28 +560,23 @@
 
 output exec {{
     /// Check "FP enabled" machine status bit.  Called when executing any FP
-    /// instruction in full-system mode.
+    /// instruction.
     /// @retval Full-system mode: NoFault if FP is enabled, FpDisabled
     /// if not.  Non-full-system mode: always returns NoFault.
-#if FULL_SYSTEM
-    inline Fault
+    static inline Fault
     checkFpEnableFault(%(CPU_exec_context)s *xc)
     {
-        Fault fault = NoFault;  // dummy... this ipr access should not fault
-        if (xc->readMiscReg(MISCREG_PSTATE) & PSTATE::pef &&
-            xc->readMiscReg(MISCREG_FPRS) & 0x4) {
+        if (FULL_SYSTEM) {
+            if (xc->readMiscReg(MISCREG_PSTATE) & PSTATE::pef &&
+                xc->readMiscReg(MISCREG_FPRS) & 0x4) {
+                return NoFault;
+            } else {
+                return new FpDisabled;
+            }
+        } else {
             return NoFault;
-        } else {
-            return new FpDisabled;
         }
     }
-#else
-    inline Fault
-    checkFpEnableFault(%(CPU_exec_context)s *xc)
-    {
-        return NoFault;
-    }
-#endif
 }};
 
 
diff -r f81bcb16fa1b -r d9b69f03e7af src/arch/sparc/isa/formats/unimp.isa
--- a/src/arch/sparc/isa/formats/unimp.isa      Mon Sep 19 06:14:02 2011 -0700
+++ b/src/arch/sparc/isa/formats/unimp.isa      Mon Sep 19 06:17:19 2011 -0700
@@ -103,11 +103,7 @@
     WarnUnimplemented::generateDisassembly(Addr pc,
                                            const SymbolTable *symtab) const
     {
-#ifdef SS_COMPATIBLE_DISASSEMBLY
-        return csprintf("%-10s", mnemonic);
-#else
         return csprintf("%-10s (unimplemented)", mnemonic);
-#endif
     }
 }};
 
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to