summaryrefslogtreecommitdiff
path: root/src/cpu/exetrace.hh
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2015-06-01 19:43:41 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2015-06-01 19:43:41 +0100
commit8e7c0575dc000fdc5b09114f012942b9e52eb303 (patch)
tree266d635942b9ae5e693be3e56f8c8b295929937c /src/cpu/exetrace.hh
parent06cf5cc60bcfa9080c51b5e413df5a04ae9b95a6 (diff)
downloadgem5-8e7c0575dc000fdc5b09114f012942b9e52eb303.tar.xz
kvm: Handle inst events at the current instruction count
There are cases (particularly when attaching GDB) when instruction events are scheduled at the current instruction tick. This used to trigger an assertion error in kvm. This changeset adds a check for this condition and forces KVM to do a quick entry that completes any pending IO operations, but does not execute any new instructions, before servicing the event. We could check if we need to enter KVM at all, but forcing a quick entry is makes the code slightly cleaner and does not hurt correctness (performance is hardly an issue in these cases).
Diffstat (limited to 'src/cpu/exetrace.hh')
0 files changed, 0 insertions, 0 deletions