Commit c5f2f66835c8b42fc58c7af9a4454be708304cfa
1 parent
59aa3bbf
Flushw can generate exceptions, so save PC & NPC
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4876 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
0 deletions
target-sparc/translate.c
| @@ -2346,6 +2346,7 @@ static void disas_sparc_insn(DisasContext * dc) | @@ -2346,6 +2346,7 @@ static void disas_sparc_insn(DisasContext * dc) | ||
| 2346 | break; | 2346 | break; |
| 2347 | } else if (xop == 0x2b) { /* rdtbr / V9 flushw */ | 2347 | } else if (xop == 0x2b) { /* rdtbr / V9 flushw */ |
| 2348 | #ifdef TARGET_SPARC64 | 2348 | #ifdef TARGET_SPARC64 |
| 2349 | + save_state(dc, cpu_cond); | ||
| 2349 | tcg_gen_helper_0_0(helper_flushw); | 2350 | tcg_gen_helper_0_0(helper_flushw); |
| 2350 | #else | 2351 | #else |
| 2351 | if (!supervisor(dc)) | 2352 | if (!supervisor(dc)) |