From 371603f12c901df748bdb9d75ea10660bc876e1f Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 15 Jan 2011 15:30:17 -0800 Subject: [PATCH] SPARC: Adjust the "call" instruction so R15 doesn't get marked as a source. --- src/arch/sparc/isa/decoder.isa | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/arch/sparc/isa/decoder.isa b/src/arch/sparc/isa/decoder.isa index e1d4a8fbd..5ca015a8f 100644 --- a/src/arch/sparc/isa/decoder.isa +++ b/src/arch/sparc/isa/decoder.isa @@ -138,11 +138,9 @@ decode OP default Unknown::unknown() } } 0x1: BranchN::call(30, {{ - if (Pstate<3:>) - R15 = (PC)<31:0>; - else - R15 = PC; - NNPC = R15 + disp; + IntReg midVal; + R15 = midVal = (Pstate<3:> ? (PC)<31:0> : PC); + NNPC = midVal + disp; }}); 0x2: decode OP3 { format IntOp { -- 2.30.2