[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 01/11] whpx: Fixed reporting of the CPU context to GDB for 64-bit
From: |
Paolo Bonzini |
Subject: |
[PULL 01/11] whpx: Fixed reporting of the CPU context to GDB for 64-bit |
Date: |
Wed, 2 Mar 2022 19:11:24 +0100 |
From: Ivan Shcherbakov <ivan@sysprogs.com>
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>
---
target/i386/whpx/whpx-all.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target/i386/whpx/whpx-all.c b/target/i386/whpx/whpx-all.c
index ef896da0a2..edd4fafbdf 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;
}
--
2.34.1
- [PULL 00/11] QEMU changes for 2021-03-02, Paolo Bonzini, 2022/03/02
- [PULL 02/11] whpx: Fixed incorrect CR8/TPR synchronization, Paolo Bonzini, 2022/03/02
- [PULL 03/11] vmxcap: Add 5-level EPT bit, Paolo Bonzini, 2022/03/02
- [PULL 04/11] meson: fix generic location of vss headers, Paolo Bonzini, 2022/03/02
- [PULL 01/11] whpx: Fixed reporting of the CPU context to GDB for 64-bit,
Paolo Bonzini <=
- [PULL 06/11] qga/vss: update informative message about MinGW, Paolo Bonzini, 2022/03/02
- [PULL 05/11] qga/vss-win32: check old VSS SDK headers, Paolo Bonzini, 2022/03/02
- [PULL 07/11] update meson-buildoptions.sh, Paolo Bonzini, 2022/03/02
- [PULL 08/11] kvm-irqchip: introduce new API to support route change, Paolo Bonzini, 2022/03/02
- [PULL 09/11] kvm/msi: do explicit commit when adding msi routes, Paolo Bonzini, 2022/03/02
- [PULL 11/11] target/i386: Throw a #SS when loading a non-canonical IST, Paolo Bonzini, 2022/03/02
- [PULL 10/11] target/i386: only include bits in pg_mode if they are not ignored, Paolo Bonzini, 2022/03/02
- Re: [PULL 00/11] QEMU changes for 2021-03-02, Peter Maydell, 2022/03/02