diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-01-24 19:57:36 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-01-24 19:57:36 -0500 |
commit | 5f50dfa5d037e56e73c68f4c087491f57b52f677 (patch) | |
tree | cf70c6b765bafeb489a07bd688053e0b180c6cf0 /src/arch/sparc/isa/decoder.isa | |
parent | b8fc86e28f15b03ba82465b2a1dcf0725c769bad (diff) | |
parent | 4301e4cd08018eb56b4f196afcce9a8311f390b4 (diff) | |
download | gem5-5f50dfa5d037e56e73c68f4c087491f57b52f677.tar.xz |
Merge zizzer:/bk/newmem
into zower.eecs.umich.edu:/eecshome/m5/newmem
--HG--
extra : convert_revision : 2d7ae62a59b91d735bbac093f8a4ab542ea75eee
Diffstat (limited to 'src/arch/sparc/isa/decoder.isa')
-rw-r--r-- | src/arch/sparc/isa/decoder.isa | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/arch/sparc/isa/decoder.isa b/src/arch/sparc/isa/decoder.isa index e59ce9d11..138485a17 100644 --- a/src/arch/sparc/isa/decoder.isa +++ b/src/arch/sparc/isa/decoder.isa @@ -169,7 +169,10 @@ decode OP default Unknown::unknown() 0x6: Trap::fbfcc({{fault = new FpDisabled;}}); } 0x1: BranchN::call(30, {{ - R15 = xc->readPC(); + if (Pstate<3:>) + R15 = (xc->readPC())<31:0>; + else + R15 = xc->readPC(); NNPC = R15 + disp; }}); 0x2: decode OP3 { @@ -581,6 +584,9 @@ decode OP default Unknown::unknown() Cansave = Cansave - 1; else Otherwin = Otherwin - 1; + + if(Cleanwin < NWindows - 1) + Cleanwin = Cleanwin + 1; }}); } 0x32: decode RD { @@ -878,7 +884,10 @@ decode OP default Unknown::unknown() fault = new MemAddressNotAligned; else { - Rd = xc->readPC(); + if (Pstate<3:>) + (Rd = xc->readPC())<31:0>; + else + Rd = xc->readPC(); NNPC = target; } }}); |