target-sparc: fix FMOVr instruction
Like the MOVr instruction, the FMOVr instruction has the condition encoded between bits 10 and 12. Cc: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
a5089c0501
commit
e7c8afb905
@ -3176,7 +3176,7 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn)
|
|||||||
#define FMOVR(sz) \
|
#define FMOVR(sz) \
|
||||||
do { \
|
do { \
|
||||||
DisasCompare cmp; \
|
DisasCompare cmp; \
|
||||||
cond = GET_FIELD_SP(insn, 14, 17); \
|
cond = GET_FIELD_SP(insn, 10, 12); \
|
||||||
cpu_src1 = get_src1(dc, insn); \
|
cpu_src1 = get_src1(dc, insn); \
|
||||||
gen_compare_reg(&cmp, cond, cpu_src1); \
|
gen_compare_reg(&cmp, cond, cpu_src1); \
|
||||||
gen_fmov##sz(dc, &cmp, rd, rs2); \
|
gen_fmov##sz(dc, &cmp, rd, rs2); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user