]> git.proxmox.com Git - mirror_qemu.git/commitdiff
cannot simply write segment registers in system mode
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 30 Oct 2003 01:07:22 +0000 (01:07 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 30 Oct 2003 01:07:22 +0000 (01:07 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@431 c046a42c-6fe2-441c-8c8c-71466251a162

gdbstub.c

index 15b3940ed62348f024f64523971d2e8c755672ab..bb3fed94683a525bfa2a1ced1897c5c4bece1366 100644 (file)
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -368,6 +368,7 @@ int cpu_gdbstub(void *opaque, int (*main_loop)(void *opaque), int port)
             }
             env->eip = registers[8];
             env->eflags = registers[9];
+#if defined(CONFIG_USER_ONLY)
 #define LOAD_SEG(index, sreg)\
             if (tswapl(registers[index]) != env->segs[sreg].selector)\
                 cpu_x86_load_seg(env, sreg, tswapl(registers[index]));
@@ -377,6 +378,7 @@ int cpu_gdbstub(void *opaque, int (*main_loop)(void *opaque), int port)
             LOAD_SEG(13, R_ES);
             LOAD_SEG(14, R_FS);
             LOAD_SEG(15, R_GS);
+#endif
 #endif
             put_packet("OK");
             break;