diff options
Diffstat (limited to 'src/cpu/base_dyn_inst.hh')
-rw-r--r-- | src/cpu/base_dyn_inst.hh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/cpu/base_dyn_inst.hh b/src/cpu/base_dyn_inst.hh index c6e57b612..f4ff88209 100644 --- a/src/cpu/base_dyn_inst.hh +++ b/src/cpu/base_dyn_inst.hh @@ -857,9 +857,8 @@ inline Fault BaseDynInst<Impl>::read(Addr addr, T &data, unsigned flags) { reqMade = true; - Request *req = new Request(); - req->setVirt(asid, addr, sizeof(T), flags, this->PC); - req->setThreadContext(thread->contextId(), threadNumber); + Request *req = new Request(asid, addr, sizeof(T), flags, this->PC, + thread->contextId(), threadNumber); fault = cpu->dtb->translateAtomic(req, thread->getTC(), BaseTLB::Read); @@ -913,9 +912,8 @@ BaseDynInst<Impl>::write(T data, Addr addr, unsigned flags, uint64_t *res) } reqMade = true; - Request *req = new Request(); - req->setVirt(asid, addr, sizeof(T), flags, this->PC); - req->setThreadContext(thread->contextId(), threadNumber); + Request *req = new Request(asid, addr, sizeof(T), flags, this->PC, + thread->contextId(), threadNumber); fault = cpu->dtb->translateAtomic(req, thread->getTC(), BaseTLB::Write); |