target/arm: Use tcg_constant in trans_CPS_v7m
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20220426163043.100432-35-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
7c5bc402fc
commit
5b95562c50
@ -8835,21 +8835,18 @@ static bool trans_CPS_v7m(DisasContext *s, arg_CPS_v7m *a)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
tmp = tcg_const_i32(a->im);
|
tmp = tcg_constant_i32(a->im);
|
||||||
/* FAULTMASK */
|
/* FAULTMASK */
|
||||||
if (a->F) {
|
if (a->F) {
|
||||||
addr = tcg_const_i32(19);
|
addr = tcg_constant_i32(19);
|
||||||
gen_helper_v7m_msr(cpu_env, addr, tmp);
|
gen_helper_v7m_msr(cpu_env, addr, tmp);
|
||||||
tcg_temp_free_i32(addr);
|
|
||||||
}
|
}
|
||||||
/* PRIMASK */
|
/* PRIMASK */
|
||||||
if (a->I) {
|
if (a->I) {
|
||||||
addr = tcg_const_i32(16);
|
addr = tcg_constant_i32(16);
|
||||||
gen_helper_v7m_msr(cpu_env, addr, tmp);
|
gen_helper_v7m_msr(cpu_env, addr, tmp);
|
||||||
tcg_temp_free_i32(addr);
|
|
||||||
}
|
}
|
||||||
gen_rebuild_hflags(s, false);
|
gen_rebuild_hflags(s, false);
|
||||||
tcg_temp_free_i32(tmp);
|
|
||||||
gen_lookup_tb(s);
|
gen_lookup_tb(s);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user