mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
set to protected mode
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@337 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
4abe615b84
commit
3802ce26a1
1 changed files with 2 additions and 0 deletions
|
@ -433,6 +433,8 @@ int main(int argc, char **argv)
|
||||||
env->user_mode_only = 1;
|
env->user_mode_only = 1;
|
||||||
|
|
||||||
#if defined(TARGET_I386)
|
#if defined(TARGET_I386)
|
||||||
|
env->cr[0] = CR0_PG_MASK | CR0_WP_MASK | CR0_PE_MASK;
|
||||||
|
|
||||||
/* linux register setup */
|
/* linux register setup */
|
||||||
env->regs[R_EAX] = regs->eax;
|
env->regs[R_EAX] = regs->eax;
|
||||||
env->regs[R_EBX] = regs->ebx;
|
env->regs[R_EBX] = regs->ebx;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue