Skip to content

Commit

Permalink
sparc64: fix ldxfsr insn
Browse files Browse the repository at this point in the history
- rearrange code to break from switch when appropriate
- allow deprecated ldfsr insn

Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  • Loading branch information
i-garrison authored and blueswirl committed Jun 2, 2010
1 parent c086b78 commit fe987e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion target-sparc/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -4476,7 +4476,11 @@ static void disas_sparc_insn(DisasContext * dc)
if (rd == 1) {
tcg_gen_qemu_ld64(cpu_tmp64, cpu_addr, dc->mem_idx);
gen_helper_ldxfsr(cpu_tmp64);
} else
} else {
tcg_gen_qemu_ld32u(cpu_tmp0, cpu_addr, dc->mem_idx);
tcg_gen_trunc_tl_i32(cpu_tmp32, cpu_tmp0);
gen_helper_ldfsr(cpu_tmp32);
}
#else
{
tcg_gen_qemu_ld32u(cpu_tmp32, cpu_addr, dc->mem_idx);
Expand Down

0 comments on commit fe987e2

Please sign in to comment.