summaryrefslogtreecommitdiff
path: root/src/arch/sparc/isa
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2006-08-17 23:13:11 -0400
committerSteve Reinhardt <stever@eecs.umich.edu>2006-08-17 23:13:11 -0400
commit2b70b74c9bc575005a26fd727be26e11ac6db032 (patch)
tree3fde74911287314ebec2e84a4d12475a75fc1362 /src/arch/sparc/isa
parenta21afd7bc45c1d2e571a85dc54649d292fcd8c7f (diff)
downloadgem5-2b70b74c9bc575005a26fd727be26e11ac6db032.tar.xz
Changes to build m5.fast
--HG-- extra : convert_revision : 2ec600b8e72e40e8b96e3b1dbe0334aa05e0f30b
Diffstat (limited to 'src/arch/sparc/isa')
-rw-r--r--src/arch/sparc/isa/decoder.isa4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/sparc/isa/decoder.isa b/src/arch/sparc/isa/decoder.isa
index 312b7fc71..304c97f2f 100644
--- a/src/arch/sparc/isa/decoder.isa
+++ b/src/arch/sparc/isa/decoder.isa
@@ -679,9 +679,9 @@ decode OP default Unknown::unknown()
0x0: Trap::tcci({{
if(passesCondition(Ccr<3:0>, COND2))
{
+#if FULL_SYSTEM
int lTrapNum = I ? (Rs1 + SW_TRAP) : (Rs1 + Rs2);
DPRINTF(Sparc, "The trap number is %d\n", lTrapNum);
-#if FULL_SYSTEM
fault = new TrapInstruction(lTrapNum);
#else
DPRINTF(Sparc, "The syscall number is %d\n", R1);
@@ -692,9 +692,9 @@ decode OP default Unknown::unknown()
0x2: Trap::tccx({{
if(passesCondition(Ccr<7:4>, COND2))
{
+#if FULL_SYSTEM
int lTrapNum = I ? (Rs1 + SW_TRAP) : (Rs1 + Rs2);
DPRINTF(Sparc, "The trap number is %d\n", lTrapNum);
-#if FULL_SYSTEM
fault = new TrapInstruction(lTrapNum);
#else
DPRINTF(Sparc, "The syscall number is %d\n", R1);