From: bellard Date: Wed, 27 Sep 2006 21:31:59 +0000 (+0000) Subject: fixed user mode emulation X-Git-Tag: release_0_9_1~1711 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=bd35c820961d8c10bde81661adb76e03a16002bf;p=qemu-xen-4.3-testing.git fixed user mode emulation --- diff --git a/target-i386/helper.c b/target-i386/helper.c index 4017bee79..c2b5e1100 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -1217,6 +1217,18 @@ void raise_exception(int exception_index) /* SMM support */ +#if defined(CONFIG_USER_ONLY) + +void do_smm_enter(void) +{ +} + +void helper_rsm(void) +{ +} + +#else + #ifdef TARGET_X86_64 #define SMM_REVISION_ID 0x00020064 #else @@ -1483,6 +1495,9 @@ void helper_rsm(void) } } +#endif /* !CONFIG_USER_ONLY */ + + #ifdef BUGGY_GCC_DIV64 /* gcc 2.95.4 on PowerPC does not seem to like using __udivdi3, so we call it from another function */