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)
commita13725685ed6a005273e2bf57ae942c9e245133b
tree25e25d221dd1d2c8486d9ab4ab342e6892d12866
parentcbff292939eb0021828505bb53c4d70f55334dd0
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