summaryrefslogtreecommitdiff
path: root/src/arch/sparc/miscregfile.cc
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2007-01-10 22:19:13 -0500
committerAli Saidi <saidi@eecs.umich.edu>2007-01-10 22:19:13 -0500
commit9d04510869fe66d59a168660925a8387c0fba1b8 (patch)
tree62625bd13f32c4107ed3f24df65421e5fe086232 /src/arch/sparc/miscregfile.cc
parent28a83c6d1c2673448aaedfb0eb131d6c6604badf (diff)
downloadgem5-9d04510869fe66d59a168660925a8387c0fba1b8.tar.xz
bug fixes to get us to 145m instructions
src/arch/sparc/intregfile.cc: some checks to make sure that the cwp and global register flattening stuff is working. These things have caught a couple of bugs so I think it would be good to keep them around at least for now src/arch/sparc/isa/decoder.isa: fix smul instruction to write Y correctly src/arch/sparc/miscregfile.cc: legion always returns du and dl set, so we need to emulate that for now at least --HG-- extra : convert_revision : 82f9276340888f1e43071c69504486efdcfdb3a8
Diffstat (limited to 'src/arch/sparc/miscregfile.cc')
-rw-r--r--src/arch/sparc/miscregfile.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/arch/sparc/miscregfile.cc b/src/arch/sparc/miscregfile.cc
index 2dde5afd5..50f510289 100644
--- a/src/arch/sparc/miscregfile.cc
+++ b/src/arch/sparc/miscregfile.cc
@@ -327,10 +327,7 @@ MiscReg MiscRegFile::readRegWithEffect(int miscReg, ThreadContext * tc)
mbits(tick,63,63);
case MISCREG_FPRS:
// in legion if fp is enabled du and dl are set
- if (fprs & 0x4)
- return 0x7;
- else
- return 0;
+ return fprs | 0x3;
case MISCREG_PCR:
case MISCREG_PIC:
panic("Performance Instrumentation not impl\n");