mirror of
https://github.com/qemu/qemu.git
synced 2025-08-14 03:15:54 +00:00
declare user mode only simulation for QEMU
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@265 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
dd3587f38e
commit
92ccca6aa8
@ -100,6 +100,11 @@ int cpu_x86_inl(CPUX86State *env, int addr)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int cpu_x86_get_pic_interrupt(CPUX86State *env)
|
||||||
|
{
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
static void write_dt(void *ptr, unsigned long addr, unsigned long limit,
|
static void write_dt(void *ptr, unsigned long addr, unsigned long limit,
|
||||||
int flags)
|
int flags)
|
||||||
{
|
{
|
||||||
@ -476,6 +481,8 @@ int main(int argc, char **argv)
|
|||||||
cpu_x86_load_seg(env, R_SS, __USER_DS);
|
cpu_x86_load_seg(env, R_SS, __USER_DS);
|
||||||
cpu_x86_load_seg(env, R_FS, __USER_DS);
|
cpu_x86_load_seg(env, R_FS, __USER_DS);
|
||||||
cpu_x86_load_seg(env, R_GS, __USER_DS);
|
cpu_x86_load_seg(env, R_GS, __USER_DS);
|
||||||
|
env->user_mode_only = 1;
|
||||||
|
|
||||||
#elif defined(TARGET_ARM)
|
#elif defined(TARGET_ARM)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user