]> git.proxmox.com Git - qemu.git/commit
x86: use caller supplied CPUState for interrupt related stuff
authorBlue Swirl <blauwirbel@gmail.com>
Mon, 16 May 2011 19:38:48 +0000 (19:38 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 26 Jun 2011 18:25:19 +0000 (18:25 +0000)
commite694d4e289b05d0c9b118850eff961aa9ca33183
tree25e25d221dd1d2c8486d9ab4ab342e6892d12866
parente67768d0f13c78144f17bcca8a64b9b812918198
x86: use caller supplied CPUState for interrupt related stuff

Several x86 specific functions are called from cpu-exec.c with the
assumption that global env register is valid. This will be changed
later, so make the functions use caller supplied CPUState parameter.

It would be cleaner to move the functions to helper.c, but there are
quite a lot of dependencies between do_interrupt() and other functions.

Add helpers for svm_check_intercept() and cpu_cc_compute_all() instead
of calling the helper (which uses global env, AREG0) directly.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
cpu-exec.c
target-i386/cpu.h
target-i386/exec.h
target-i386/op_helper.c