Make the FpUnimpl format actually write the Fsr.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 30 Jan 2007 05:21:18 +0000 (00:21 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 30 Jan 2007 05:21:18 +0000 (00:21 -0500)
--HG--
extra : convert_revision : 84717cd3a8fa9fb85bd0693304e05ef475b05d07

src/arch/sparc/isa/formats/trap.isa

index 8ac40c16f8dc7ebb9374e01be70984a783975874..66eff35d45016cc6b366116c8caabb89f5fed79c 100644 (file)
@@ -82,6 +82,19 @@ def template TrapExecute {{
         }
 }};
 
+def template FpUnimplExecute {{
+        Fault %(class_name)s::execute(%(CPU_exec_context)s *xc,
+                Trace::InstRecord *traceData) const
+        {
+            Fault fault = NoFault;
+            %(op_decl)s;
+            %(op_rd)s;
+            %(code)s
+            %(op_wb)s;
+            return fault;
+        }
+}};
+
 def format Trap(code, *opt_flags) {{
         iop = InstObjParams(name, Name, 'Trap', code, opt_flags)
         header_output = BasicDeclare.subst(iop)
@@ -117,5 +130,5 @@ def format FpUnimpl(*flags) {{
         header_output = BasicDeclare.subst(iop)
         decoder_output = BasicConstructor.subst(iop)
         decode_block = BasicDecode.subst(iop)
-        exec_output = TrapExecute.subst(iop)
+        exec_output = FpUnimplExecute.subst(iop)
 }};