summaryrefslogtreecommitdiffstats
path: root/qemu-common.h
diff options
context:
space:
mode:
authorBlue Swirl2011-08-01 23:26:03 +0200
committerBlue Swirl2011-08-01 23:26:03 +0200
commit67494323f2c782fe3e65c60529fe9dfa613fc500 (patch)
tree1e99ed4562eb475214f3923f8e5263acb04bf4ef /qemu-common.h
parentmicroblaze: Add missing call to qemu_init_vcpu. (diff)
downloadqemu-67494323f2c782fe3e65c60529fe9dfa613fc500.tar.gz
qemu-67494323f2c782fe3e65c60529fe9dfa613fc500.tar.xz
qemu-67494323f2c782fe3e65c60529fe9dfa613fc500.zip
Sparc: fix non-faulting unassigned memory accesses
Commit b14ef7c9ab41ea824c3ccadb070ad95567cca84e introduced cpu_unassigned_access() function. On Sparc, the function does not restore AREG0 used for global CPUState on function exit, causing bugs with non-faulting unassigned memory accesses. Alpha, Microblaze and MIPS are not affected. Fix by restoring AREG0 on exit. Remove excess saving by do_unassigned_access() functions. Also ignore unassigned accesses outside of CPU context. Reported-by: Bob Breuer <breuerr@mc.net> Tested-by: Bob Breuer <breuerr@mc.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-common.h')
0 files changed, 0 insertions, 0 deletions