diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-06-24 13:30:31 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-06-24 13:30:31 +0000 |
commit | 92ccca6aa801f1ddb8d35f3812357c24a502d682 (patch) | |
tree | c1ffcbda6b42943a0925ac4e19ba36aba34a9e1d | |
parent | dd3587f38e5c0745896da6b7b058d0f88fff86a0 (diff) | |
download | qemu-92ccca6aa801f1ddb8d35f3812357c24a502d682.tar.gz qemu-92ccca6aa801f1ddb8d35f3812357c24a502d682.tar.bz2 qemu-92ccca6aa801f1ddb8d35f3812357c24a502d682.zip |
declare user mode only simulation for QEMU
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@265 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | linux-user/main.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index df01a1c776..a8ae9c75ac 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -100,6 +100,11 @@ int cpu_x86_inl(CPUX86State *env, int addr) return 0; } +int cpu_x86_get_pic_interrupt(CPUX86State *env) +{ + return -1; +} + static void write_dt(void *ptr, unsigned long addr, unsigned long limit, int flags) { @@ -395,7 +400,7 @@ int main(int argc, char **argv) /* NOTE: we need to init the CPU at this stage to get the host_page_size */ env = cpu_init(); - + if (elf_exec(filename, argv+optind, environ, regs, info) != 0) { printf("Error loading %s\n", filename); _exit(1); @@ -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_FS, __USER_DS); cpu_x86_load_seg(env, R_GS, __USER_DS); + env->user_mode_only = 1; + #elif defined(TARGET_ARM) { int i; |