From 7cd362ca4e9394967f8680593b657b0bdd39d29e Mon Sep 17 00:00:00 2001
From: Korey Sewell <ksewell@umich.edu>
Date: Wed, 14 Jun 2006 19:45:15 -0400
Subject: [PATCH] add cycle to exit message

src/arch/mips/isa/formats/trap.isa:
    Take out fix that tried to fix trap
    instruction disassembly. It forces bad
    compile ..
configs/test/test.py:
    add 'cycle' to exit message

--HG--
extra : convert_revision : 568877797fd2806416b4cbb388cc3f7eb2492627
---
 configs/test/test.py               | 2 +-
 src/arch/mips/isa/formats/trap.isa | 8 +++-----
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/configs/test/test.py b/configs/test/test.py
index 2ece9e675..9ab5f6e00 100644
--- a/configs/test/test.py
+++ b/configs/test/test.py
@@ -50,5 +50,5 @@ m5.instantiate(root)
 # simulate until program terminates
 exit_event = m5.simulate()
 
-print 'Exiting @', m5.curTick(), 'because', exit_event.getCause()
+print 'Exiting @ cycle', m5.curTick(), 'because', exit_event.getCause()
 
diff --git a/src/arch/mips/isa/formats/trap.isa b/src/arch/mips/isa/formats/trap.isa
index 6692e8ef8..8a9c5822a 100644
--- a/src/arch/mips/isa/formats/trap.isa
+++ b/src/arch/mips/isa/formats/trap.isa
@@ -70,11 +70,9 @@ def template TrapExecute {{
 }};
 
 def format Trap(code, *flags) {{
-        warn_code = 'warn(\"'
-        warn_code += 'Trap Exception Handler Is Currently Not Implemented.'
-        warn_code += '\");'
-        code = warn_code + "bool " + code
-
+        code = 'warn(\"'
+        code += 'Trap Exception Handler Is Currently Not Implemented.'
+        code += '\");'
         iop = InstObjParams(name, Name, 'MipsStaticInst', CodeBlock(code), flags)
         header_output = BasicDeclare.subst(iop)
         decoder_output = BasicConstructor.subst(iop)
-- 
2.30.2