* [Qemu-devel] [PATCH] sparc64 flush pending conditional evaluations before exposing cpu state
@ 2009-07-28 21:32 Igor Kovalenko
0 siblings, 0 replies; only message in thread
From: Igor Kovalenko @ 2009-07-28 21:32 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 299 bytes --]
If translation block is interrupted by e.g. mmu exception
we need to compute conditional flags for inclusion into
saved cpu state. Otherwise after return from trap
conditional instructions would use stale psr/xcc data.
Signed-off-by: igor.v.kovalenko@gmail.com
--
Kind regards,
Igor V. Kovalenko
[-- Attachment #2: sparc64-flush-cc-op --]
[-- Type: application/octet-stream, Size: 456 bytes --]
Index: qemu-trunk/target-sparc/translate.c
===================================================================
--- qemu-trunk.orig/target-sparc/translate.c
+++ qemu-trunk/target-sparc/translate.c
@@ -4908,4 +4908,9 @@ void gen_pc_load(CPUState *env, Translat
} else {
env->npc = npc;
}
+
+ /* flush pending conditional evaluations before exposing cpu state */
+ if (CC_OP != CC_OP_FLAGS) {
+ helper_compute_psr();
+ }
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-28 21:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-28 21:32 [Qemu-devel] [PATCH] sparc64 flush pending conditional evaluations before exposing cpu state Igor Kovalenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).