Commit 74ce674fa856b37bf3ff46bff2c7a4a49810ed80
1 parent
8988ae89
fixed user mode emulation
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2184 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
15 additions
and
0 deletions
target-i386/helper.c
| @@ -1217,6 +1217,18 @@ void raise_exception(int exception_index) | @@ -1217,6 +1217,18 @@ void raise_exception(int exception_index) | ||
| 1217 | 1217 | ||
| 1218 | /* SMM support */ | 1218 | /* SMM support */ |
| 1219 | 1219 | ||
| 1220 | +#if defined(CONFIG_USER_ONLY) | ||
| 1221 | + | ||
| 1222 | +void do_smm_enter(void) | ||
| 1223 | +{ | ||
| 1224 | +} | ||
| 1225 | + | ||
| 1226 | +void helper_rsm(void) | ||
| 1227 | +{ | ||
| 1228 | +} | ||
| 1229 | + | ||
| 1230 | +#else | ||
| 1231 | + | ||
| 1220 | #ifdef TARGET_X86_64 | 1232 | #ifdef TARGET_X86_64 |
| 1221 | #define SMM_REVISION_ID 0x00020064 | 1233 | #define SMM_REVISION_ID 0x00020064 |
| 1222 | #else | 1234 | #else |
| @@ -1483,6 +1495,9 @@ void helper_rsm(void) | @@ -1483,6 +1495,9 @@ void helper_rsm(void) | ||
| 1483 | } | 1495 | } |
| 1484 | } | 1496 | } |
| 1485 | 1497 | ||
| 1498 | +#endif /* !CONFIG_USER_ONLY */ | ||
| 1499 | + | ||
| 1500 | + | ||
| 1486 | #ifdef BUGGY_GCC_DIV64 | 1501 | #ifdef BUGGY_GCC_DIV64 |
| 1487 | /* gcc 2.95.4 on PowerPC does not seem to like using __udivdi3, so we | 1502 | /* gcc 2.95.4 on PowerPC does not seem to like using __udivdi3, so we |
| 1488 | call it from another function */ | 1503 | call it from another function */ |