[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 14/16] PPC: KVM: Synchronize regs on CPU dump
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 14/16] PPC: KVM: Synchronize regs on CPU dump |
Date: |
Thu, 15 Mar 2012 13:14:20 +0100 |
When we dump the CPU registers, there's a certain chance they haven't been
synchronized with KVM yet, so we have to manually trigger that.
This aligns the code with x86 and fixes a bug where the register state was
bogus on invalid/unknown kvm exit reasons.
Reported-by: Benjamin Herrenschmidt <address@hidden>
Signed-off-by: Alexander Graf <address@hidden>
---
target-ppc/translate.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index 4722a09..c9a503a 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -9319,6 +9319,8 @@ void cpu_dump_state (CPUPPCState *env, FILE *f,
fprintf_function cpu_fprintf,
int i;
+ cpu_synchronize_state(env);
+
cpu_fprintf(f, "NIP " TARGET_FMT_lx " LR " TARGET_FMT_lx " CTR "
TARGET_FMT_lx " XER " TARGET_FMT_lx "\n",
env->nip, env->lr, env->ctr, env->xer);
--
1.6.0.2
- [Qemu-ppc] [PATCH 15/16] pseries: Configure PCI bridge using properties, (continued)
- [Qemu-ppc] [PATCH 15/16] pseries: Configure PCI bridge using properties, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 08/16] pseries: Remove PCI device from PCI host bridge code, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 16/16] PPC: Fix openpic with relative memregions, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 09/16] PPC: Add PIR register to POWER7 CPU, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 12/16] ppc: Correctly define POWERPC_INSNS2_DEFAULT, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 11/16] pseries: Add support for level interrupts to XICS, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 04/16] pseries: Don't try to munmap() a malloc()ed TCE table, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 05/16] PPC64: Add support for ldbrx and stdbrx instructions, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 06/16] pseries: Update SLOF firmware image, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 07/16] pseries: Remove unused constant from PCI code, Alexander Graf, 2012/03/15
- [Qemu-ppc] [PATCH 14/16] PPC: KVM: Synchronize regs on CPU dump,
Alexander Graf <=
- [Qemu-ppc] [PATCH 10/16] PPC: Fix large page support in TCG, Alexander Graf, 2012/03/15
- Re: [Qemu-ppc] [PULL 00/16] ppc patch queue 2012-03-15, Blue Swirl, 2012/03/17