From 77b2bc2c096be44a36c45d777abb81a298c05c98 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 28 Apr 2012 19:35:10 +0000 Subject: 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 --- user-exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user-exec.c') diff --git a/user-exec.c b/user-exec.c index d8c2ad9f2f..b2a4261eca 100644 --- a/user-exec.c +++ b/user-exec.c @@ -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 -- cgit v1.2.1