diff options
author | James Hogan <[email protected]> | 2016-06-09 10:50:45 +0100 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2016-06-14 10:59:45 +0200 |
commit | cc81e9486202345d6ca56495cf8b5f3d03fbc563 (patch) | |
tree | df76b2d7c4766a0f2c07c8d41d7517191e97a122 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7f5a1ddc792901249c2060e165bcb3ca779cde35 (diff) |
MIPS: KVM: Don't unwind PC when emulating CACHE
When a CACHE instruction is emulated by kvm_mips_emulate_cache(), the PC
is first updated to point to the next instruction, and afterwards it
falls through the "dont_update_pc" label, which rewinds the PC back to
its original address.
This works when dynamic translation of emulated instructions is enabled,
since the CACHE instruction is replaced with a SYNCI which works without
trapping, however when dynamic translation is disabled the guest hangs
on CACHE instructions as they always trap and are never stepped over.
Roughly swap the meanings of the "done" and "dont_update_pc" to match
kvm_mips_emulate_CP0(), so that "done" will roll back the PC on failure,
and "dont_update_pc" won't change PC at all (for the sake of exceptions
that have already modified the PC).
Signed-off-by: James Hogan <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Radim Krčmář <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions