From: blueswir1 Date: Mon, 7 May 2007 17:01:15 +0000 (+0000) Subject: Fix pc/npc for unaligned load/stores, maybe other exceptions X-Git-Tag: release_0_9_1~1117 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2371aaa295bbbdf4930e481828db5ab636f49aff;p=users%2Fdwmw2%2Fqemu.git Fix pc/npc for unaligned load/stores, maybe other exceptions git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2780 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 4b8b3d261d..c5eefad4ef 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -2776,6 +2776,7 @@ static void disas_sparc_insn(DisasContext * dc) { unsigned int xop = GET_FIELD(insn, 7, 12); rs1 = GET_FIELD(insn, 13, 17); + save_state(dc); gen_movl_reg_T0(rs1); if (IS_IMM) { /* immediate */ rs2 = GET_FIELDs(insn, 19, 31);