diff options
author | James Hogan <[email protected]> | 2016-11-14 23:59:27 +0000 |
---|---|---|
committer | James Hogan <[email protected]> | 2017-02-03 15:21:30 +0000 |
commit | 7801bbe1bd907a8f8b136fc184583260508febb6 (patch) | |
tree | 657af8c96b0d433c9fe1297756fa2c80bfddb321 /tools/perf/util/trace-event-scripting.c | |
parent | 654229a02456a9af372defb13d1911345360074d (diff) |
KVM: MIPS/T&E: Implement CP0_EBase register
The CP0_EBase register is a standard feature of MIPS32r2, so we should
always have been implementing it properly. However the register value
was ignored and wasn't exposed to userland.
Fix the emulation of exceptions and interrupts to use the value stored
in guest CP0_EBase, and fix the masks so that the top 3 bits (rather
than the standard 2) are fixed, so that it is always in the guest KSeg0
segment.
Also add CP0_EBASE to the KVM one_reg interface so it can be accessed by
userland, also allowing the CPU number field to be written (which isn't
permitted by the guest).
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]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions