diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-04-26 09:30:30 -0700 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-04-28 13:38:15 +0100 |
commit | 5b95562c50379ee7263fe60cc26ab05dce66ab49 (patch) | |
tree | 570fbe555cbbaead3fc8db7e38714a91f328a797 /target | |
parent | 7c5bc402fc38672fc747caf899965b244fa44b7d (diff) |
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>
Diffstat (limited to 'target')
-rw-r--r-- | target/arm/translate.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/target/arm/translate.c b/target/arm/translate.c index 0e9fde2589..5ce23947a1 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -8835,21 +8835,18 @@ static bool trans_CPS_v7m(DisasContext *s, arg_CPS_v7m *a) return true; } - tmp = tcg_const_i32(a->im); + tmp = tcg_constant_i32(a->im); /* FAULTMASK */ if (a->F) { - addr = tcg_const_i32(19); + addr = tcg_constant_i32(19); gen_helper_v7m_msr(cpu_env, addr, tmp); - tcg_temp_free_i32(addr); } /* PRIMASK */ if (a->I) { - addr = tcg_const_i32(16); + addr = tcg_constant_i32(16); gen_helper_v7m_msr(cpu_env, addr, tmp); - tcg_temp_free_i32(addr); } gen_rebuild_hflags(s, false); - tcg_temp_free_i32(tmp); gen_lookup_tb(s); return true; } |