diff options
author | Gabe Black <gabeblack@google.com> | 2019-10-09 20:14:21 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-10-25 22:42:31 +0000 |
commit | 21b58d19ad2996d34da9d3143f47059636c6cd84 (patch) | |
tree | bfd49c42bcdcc0d0543c5643003de9bb36cb748a /src/cpu/o3 | |
parent | 6f42417144fe1a2e3ca37a3b419a57fc825030e2 (diff) | |
download | gem5-21b58d19ad2996d34da9d3143f47059636c6cd84.tar.xz |
cpu: Pass the address to check into the PCEventQueue service method.
This prevents having to access it from within the ThreadContext.
Change-Id: I34f5815a11201b8fc41871c18bdbbcd0f40305cf
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22102
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/cpu/o3')
-rw-r--r-- | src/cpu/o3/commit_impl.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cpu/o3/commit_impl.hh b/src/cpu/o3/commit_impl.hh index 2aa9d7824..df439454b 100644 --- a/src/cpu/o3/commit_impl.hh +++ b/src/cpu/o3/commit_impl.hh @@ -1112,7 +1112,8 @@ DefaultCommit<Impl>::commitInsts() !thread[tid]->trapPending); do { oldpc = pc[tid].instAddr(); - cpu->system->pcEventQueue.service(thread[tid]->getTC()); + cpu->system->pcEventQueue.service( + oldpc, thread[tid]->getTC()); count++; } while (oldpc != pc[tid].instAddr()); if (count > 1) { |