Minor error. Forgotten to remove brackets for threadPC.
--HG-- extra : convert_revision : 40a636a539e84decfca438c07adf022eed7b7780
This commit is contained in:
parent
fbcc35450d
commit
a7fe9345ee
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ BaseSimpleCPU::setupFetchRequest(Request *req)
|
||||||
|
|
||||||
const Addr PCMask = ~(sizeof(MachInst) - 1);
|
const Addr PCMask = ~(sizeof(MachInst) - 1);
|
||||||
Addr fetchPC = thread->readPC() + fetchOffset;
|
Addr fetchPC = thread->readPC() + fetchOffset;
|
||||||
req->setVirt(0, fetchPC & PCMask, sizeof(MachInst), 0, threadPC());
|
req->setVirt(0, fetchPC & PCMask, sizeof(MachInst), 0, threadPC);
|
||||||
|
|
||||||
Fault fault = thread->translateInstReq(req);
|
Fault fault = thread->translateInstReq(req);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue