Merge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
into zizzer.eecs.umich.edu:/z/m5/Bitkeeper/multiarch
cpu/simple/cpu.cc:
Hand Merge
--HG--
rename : cpu/exec_context.hh => cpu/cpu_exec_context.hh
extra : convert_revision : bf664b092f993d0f4675ce8e7df13645a920c1f4
This commit is contained in:
@@ -445,6 +445,17 @@ class CPUExecContext
|
||||
regs.npc = val;
|
||||
}
|
||||
|
||||
uint64_t readNextNPC()
|
||||
{
|
||||
return regs.nnpc;
|
||||
}
|
||||
|
||||
void setNextNPC(uint64_t val)
|
||||
{
|
||||
regs.nnpc = val;
|
||||
}
|
||||
|
||||
|
||||
MiscReg readMiscReg(int misc_reg)
|
||||
{
|
||||
return regs.miscRegs.readReg(misc_reg);
|
||||
|
||||
@@ -823,9 +823,17 @@ SimpleCPU::tick()
|
||||
#endif // FULL_SYSTEM
|
||||
}
|
||||
else {
|
||||
#if THE_ISA != MIPS_ISA
|
||||
// go to the next instruction
|
||||
cpuXC->setPC(cpuXC->readNextPC());
|
||||
cpuXC->setNextPC(cpuXC->readNextPC() + sizeof(MachInst));
|
||||
#else
|
||||
// go to the next instruction
|
||||
cpuXC->setPC(cpuXC->readNextPC());
|
||||
cpuXC->setNextPC(cpuXC->readNextNPC());
|
||||
cpuXC->setNextNPC(cpuXC->readNextNPC() + sizeof(MachInst));
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#if FULL_SYSTEM
|
||||
|
||||
Reference in New Issue
Block a user