Merge zizzer:/bk/newmem
into zeep.pool:/z/saidi/work/m5.newmem --HG-- extra : convert_revision : f25fd4855a1eaaecb29e6ccc3cee22cf07e4108b
This commit is contained in:
commit
84c6463c3e
2 changed files with 5 additions and 1 deletions
|
@ -137,10 +137,12 @@ Fault FloatRegFile::setReg(int floatReg, const FloatReg &val, int width)
|
|||
case SingleWidth:
|
||||
result32 = gtoh((uint32_t)val);
|
||||
memcpy(regSpace + 4 * floatReg, &result32, sizeof(result32));
|
||||
DPRINTF(Sparc, "Write FP64 register %d = 0x%x\n", floatReg, result32);
|
||||
break;
|
||||
case DoubleWidth:
|
||||
result64 = gtoh((uint64_t)val);
|
||||
memcpy(regSpace + 4 * floatReg, &result64, sizeof(result64));
|
||||
DPRINTF(Sparc, "Write FP64 register %d = 0x%x\n", floatReg, result64);
|
||||
break;
|
||||
case QuadWidth:
|
||||
panic("Quad width FP not implemented.");
|
||||
|
@ -163,10 +165,12 @@ Fault FloatRegFile::setRegBits(int floatReg, const FloatRegBits &val, int width)
|
|||
case SingleWidth:
|
||||
result32 = gtoh((uint32_t)val);
|
||||
memcpy(regSpace + 4 * floatReg, &result32, sizeof(result32));
|
||||
DPRINTF(Sparc, "Write FP64 bits register %d = 0x%x\n", floatReg, result32);
|
||||
break;
|
||||
case DoubleWidth:
|
||||
result64 = gtoh((uint64_t)val);
|
||||
memcpy(regSpace + 4 * floatReg, &result64, sizeof(result64));
|
||||
DPRINTF(Sparc, "Write FP64 bits register %d = 0x%x\n", floatReg, result64);
|
||||
break;
|
||||
case QuadWidth:
|
||||
panic("Quad width FP not implemented.");
|
||||
|
|
|
@ -362,7 +362,7 @@ Trace::InstRecord::dump(ostream &outs)
|
|||
}
|
||||
}
|
||||
for (int i = 0; i < TheISA::NumFloatRegs/2; i++) {
|
||||
if (thread->readFloatRegBits(i,FloatRegFile::DoubleWidth) != shared_data->fpregs[i]) {
|
||||
if (thread->readFloatRegBits(i*2,FloatRegFile::DoubleWidth) != shared_data->fpregs[i]) {
|
||||
diffFpRegs = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue