diff options
author | Mitch Hayenga <mitch.hayenga@arm.com> | 2015-09-30 11:14:19 -0500 |
---|---|---|
committer | Mitch Hayenga <mitch.hayenga@arm.com> | 2015-09-30 11:14:19 -0500 |
commit | fafa83ed32933fe250d34dfca23fba348429b176 (patch) | |
tree | 3bf8fd636f1e879273045fefda3b5d7319a38479 /src/cpu/simple/exec_context.hh | |
parent | 582a0148b441fe9f4a6f977094c5ce6bf7ab6313 (diff) | |
download | gem5-fafa83ed32933fe250d34dfca23fba348429b176.tar.xz |
cpu: Add per-thread monitors
Adds per-thread address monitors to support FullSystem SMT.
Diffstat (limited to 'src/cpu/simple/exec_context.hh')
-rw-r--r-- | src/cpu/simple/exec_context.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cpu/simple/exec_context.hh b/src/cpu/simple/exec_context.hh index f474cc358..591cf8227 100644 --- a/src/cpu/simple/exec_context.hh +++ b/src/cpu/simple/exec_context.hh @@ -376,22 +376,22 @@ class SimpleExecContext : public ExecContext { void armMonitor(Addr address) M5_ATTR_OVERRIDE { - cpu->armMonitor(address); + cpu->armMonitor(thread->threadId(), address); } bool mwait(PacketPtr pkt) M5_ATTR_OVERRIDE { - return cpu->mwait(pkt); + return cpu->mwait(thread->threadId(), pkt); } void mwaitAtomic(ThreadContext *tc) M5_ATTR_OVERRIDE { - cpu->mwaitAtomic(tc, thread->dtb); + cpu->mwaitAtomic(thread->threadId(), tc, thread->dtb); } AddressMonitor *getAddrMonitor() M5_ATTR_OVERRIDE { - return cpu->getCpuAddrMonitor(); + return cpu->getCpuAddrMonitor(thread->threadId()); } #if THE_ISA == MIPS_ISA |