From f247fa84acbc1512dc13384975fae88b27467cff Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Sat, 13 Jul 2024 19:17:48 -0300 Subject: [PATCH] gdbstub: Don't reload CS on jump --- src/gdbstub.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/gdbstub.c b/src/gdbstub.c index 703637422..8322c5ef6 100644 --- a/src/gdbstub.c +++ b/src/gdbstub.c @@ -365,13 +365,7 @@ gdbstub_break(void) static void gdbstub_jump(uint32_t new_pc) { - /* Nasty hack; qemu always uses the full 32-bit EIP internally... */ - if (cpu_state.op32 || ((new_pc >= cs) && (new_pc < (cs + 65536)))) { - cpu_state.pc = new_pc - cs; - } else { - loadseg((new_pc >> 4) & 0xf000, &cpu_state.seg_cs); - cpu_state.pc = new_pc & 0xffff; - } + cpu_state.pc = new_pc - cs; flushmmucache(); }