diff options
Diffstat (limited to 'src/sim/process.cc')
-rw-r--r-- | src/sim/process.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sim/process.cc b/src/sim/process.cc index 81f2cd6aa..f974fa5ba 100644 --- a/src/sim/process.cc +++ b/src/sim/process.cc @@ -162,7 +162,7 @@ Process::clone(ThreadContext *otc, ThreadContext *ntc, delete np->pTable; np->pTable = pTable; auto &proxy = dynamic_cast<SETranslatingPortProxy &>( - ntc->getMemProxy()); + ntc->getVirtProxy()); proxy.setPageTable(np->pTable); np->memState = memState; @@ -311,13 +311,13 @@ Process::replicatePage(Addr vaddr, Addr new_paddr, ThreadContext *old_tc, // Read from old physical page. uint8_t *buf_p = new uint8_t[PageBytes]; - old_tc->getMemProxy().readBlob(vaddr, buf_p, PageBytes); + old_tc->getVirtProxy().readBlob(vaddr, buf_p, PageBytes); // Create new mapping in process address space by clobbering existing // mapping (if any existed) and then write to the new physical page. bool clobber = true; pTable->map(vaddr, new_paddr, PageBytes, clobber); - new_tc->getMemProxy().writeBlob(vaddr, buf_p, PageBytes); + new_tc->getVirtProxy().writeBlob(vaddr, buf_p, PageBytes); delete[] buf_p; } |