[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-stable] [PATCH 01/11] target/xtensa: dump correct physical registe
From: |
Max Filippov |
Subject: |
[Qemu-stable] [PATCH 01/11] target/xtensa: dump correct physical registers |
Date: |
Wed, 28 Feb 2018 13:06:06 -0800 |
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: address@hidden
Signed-off-by: Max Filippov <address@hidden>
---
target/xtensa/translate.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c
index 671d934ff424..3ad86d4508e4 100644
--- a/target/xtensa/translate.c
+++ b/target/xtensa/translate.c
@@ -1215,6 +1215,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.11.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-stable] [PATCH 01/11] target/xtensa: dump correct physical registers,
Max Filippov <=