From 2ac88347fa354e4bd4057be1dbf498cfa70304ff Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Wed, 28 Feb 2018 11:48:04 -0800 Subject: [PATCH] target/xtensa: dump correct physical registers xtensa_cpu_dump_state outputs CPU physical registers as is, without synchronization from current window. That may result in different values printed for the current window and corresponding physical registers. Synchronize physical registers from window before dumping. Cc: qemu-stable@nongnu.org Signed-off-by: Max Filippov (cherry picked from commit b55b1afda942306e4e40420aced1524bd83ba16d) Conflicts: target/xtensa/translate.c * drop context dependencies Signed-off-by: Michael Roth --- target/xtensa/translate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c index 20f7ddf042f..60f2fe6e0b3 100644 --- a/target/xtensa/translate.c +++ b/target/xtensa/translate.c @@ -3288,6 +3288,7 @@ void xtensa_cpu_dump_state(CPUState *cs, FILE *f, (i % 4) == 3 ? '\n' : ' '); } + xtensa_sync_phys_from_window(env); cpu_fprintf(f, "\n"); for (i = 0; i < env->config->nareg; ++i) { -- 2.39.5