fix build for ARM target (#4)

This commit is contained in:
Michael Rodler 2022-06-16 11:04:17 +02:00 committed by GitHub
parent ac7bfe4325
commit 03e283c858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5558,12 +5558,12 @@ static bool op_s_rri_rot(DisasContext *s, arg_s_rri_rot *a,
TCGv tmp1_64 = tcg_temp_new(); TCGv tmp1_64 = tcg_temp_new();
TCGv tmp2_64 = tcg_temp_new(); TCGv tmp2_64 = tcg_temp_new();
tcg_gen_extu_i32_i64(tmp1_64, tmp1); tcg_gen_extu_i32_i64(tmp1_64, tmp1);
tcg_gen_extu_i32_i64(tmp2_64, tmp2); tcg_gen_extu_i32_i64(tmp2_64, tcg_constant_i32(imm));
libafl_gen_cmp(s->pc_curr, tmp1_64, tmp2_64, MO_32); libafl_gen_cmp(s->pc_curr, tmp1_64, tmp2_64, MO_32);
tcg_temp_free(tmp1_64); tcg_temp_free(tmp1_64);
tcg_temp_free(tmp2_64); tcg_temp_free(tmp2_64);
#else #else
libafl_gen_cmp(s->pc_curr, tmp1, tmp2, MO_32); libafl_gen_cmp(s->pc_curr, tmp1, tcg_constant_i32(imm), MO_32);
#endif #endif
} }