mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
x86: avoid AREG0 for exceptions
Add an explicit CPUX86State parameter instead of relying on AREG0. Merge raise_exception_env() to raise_exception(), likewise with raise_exception_err_env() and raise_exception_err(). Introduce cpu_svm_check_intercept_param() and cpu_vmexit() as wrappers. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
@ -41,7 +41,7 @@
|
||||
static void exception_action(CPUArchState *env1)
|
||||
{
|
||||
#if defined(TARGET_I386)
|
||||
raise_exception_err_env(env1, env1->exception_index, env1->error_code);
|
||||
raise_exception_err(env1, env1->exception_index, env1->error_code);
|
||||
#else
|
||||
cpu_loop_exit(env1);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user