diff options
Diffstat (limited to 'src/mem/request.hh')
-rw-r--r-- | src/mem/request.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mem/request.hh b/src/mem/request.hh index c7a1b31fb..e8f4daacb 100644 --- a/src/mem/request.hh +++ b/src/mem/request.hh @@ -128,6 +128,13 @@ class Request : validCpuAndThreadNums(false) { setPhys(_paddr, _size, _flags); } + Request(int _asid, Addr _vaddr, int _size, int _flags, Addr _pc, + int _cpuNum, int _threadNum) + { + setThreadContext(_cpuNum, _threadNum); + setVirt(_asid, _vaddr, _size, _flags, _pc); + } + /** * Set up CPU and thread numbers. */ void setThreadContext(int _cpuNum, int _threadNum) |