diff options
author | Ivan Shcherbakov | 2022-02-23 06:15:41 +0100 |
---|---|---|
committer | Paolo Bonzini | 2022-03-15 11:26:20 +0100 |
commit | e561890841e8b1ab49a5610dd811ab732904fb1f (patch) | |
tree | b1dacb901dc5355a77dfaa0b6eb90d48ce9229e7 /target/i386 | |
parent | Merge tag 'pull-tcg-20220314' of https://gitlab.com/rth7680/qemu into staging (diff) | |
download | qemu-e561890841e8b1ab49a5610dd811ab732904fb1f.tar.gz qemu-e561890841e8b1ab49a5610dd811ab732904fb1f.tar.xz qemu-e561890841e8b1ab49a5610dd811ab732904fb1f.zip |
whpx: Fixed reporting of the CPU context to GDB for 64-bit
Make sure that pausing the VM while in 64-bit mode will set the
HF_CS64_MASK flag in env->hflags (see x86_update_hflags() in
target/i386/cpu.c).
Without it, the code in gdbstub.c would only use the 32-bit register values
when debugging 64-bit targets, making debugging effectively impossible.
Signed-off-by: Ivan Shcherbakov <ivan@sysprogs.com>
Message-Id: <00f701d82874$68b02000$3a106000$@sysprogs.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386')
-rw-r--r-- | target/i386/whpx/whpx-all.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/i386/whpx/whpx-all.c b/target/i386/whpx/whpx-all.c index c7e25abf42..3bc4feba04 100644 --- a/target/i386/whpx/whpx-all.c +++ b/target/i386/whpx/whpx-all.c @@ -604,6 +604,8 @@ static void whpx_get_registers(CPUState *cpu) whpx_apic_get(x86_cpu->apic_state); } + x86_update_hflags(env); + return; } |