target/microblaze: Remove target_ulong use in helper_stackprot()
Since commit 36a9529e60 ("target/microblaze: Simplify
compute_ldst_addr_type{a,b}"), helper_stackprot() takes
a TCGv_i32 argument.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20251015180115.97493-5-philmd@linaro.org>
This commit is contained in:
parent
dc693a4a88
commit
92035b7b0d
3 changed files with 5 additions and 5 deletions
|
|
@ -20,7 +20,7 @@ DEF_HELPER_FLAGS_3(fcmp_ne, TCG_CALL_NO_WG, i32, env, i32, i32)
|
|||
DEF_HELPER_FLAGS_3(fcmp_ge, TCG_CALL_NO_WG, i32, env, i32, i32)
|
||||
|
||||
DEF_HELPER_FLAGS_2(pcmpbf, TCG_CALL_NO_RWG_SE, i32, i32, i32)
|
||||
DEF_HELPER_FLAGS_2(stackprot, TCG_CALL_NO_WG, void, env, tl)
|
||||
DEF_HELPER_FLAGS_2(stackprot, TCG_CALL_NO_WG, void, env, i32)
|
||||
DEF_HELPER_FLAGS_2(get, TCG_CALL_NO_RWG, i32, i32, i32)
|
||||
DEF_HELPER_FLAGS_3(put, TCG_CALL_NO_RWG, void, i32, i32, i32)
|
||||
|
||||
|
|
|
|||
|
|
@ -365,13 +365,13 @@ uint32_t helper_pcmpbf(uint32_t a, uint32_t b)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void helper_stackprot(CPUMBState *env, target_ulong addr)
|
||||
void helper_stackprot(CPUMBState *env, uint32_t addr)
|
||||
{
|
||||
if (addr < env->slr || addr > env->shr) {
|
||||
CPUState *cs = env_cpu(env);
|
||||
|
||||
qemu_log_mask(CPU_LOG_INT, "Stack protector violation at "
|
||||
TARGET_FMT_lx " %x %x\n",
|
||||
"0x%x 0x%x 0x%x\n",
|
||||
addr, env->slr, env->shr);
|
||||
|
||||
env->ear = addr;
|
||||
|
|
|
|||
|
|
@ -606,7 +606,7 @@ DO_TYPEBI(xori, false, tcg_gen_xori_i32)
|
|||
|
||||
static TCGv compute_ldst_addr_typea(DisasContext *dc, int ra, int rb)
|
||||
{
|
||||
TCGv ret;
|
||||
TCGv_i32 ret;
|
||||
|
||||
/* If any of the regs is r0, set t to the value of the other reg. */
|
||||
if (ra && rb) {
|
||||
|
|
@ -628,7 +628,7 @@ static TCGv compute_ldst_addr_typea(DisasContext *dc, int ra, int rb)
|
|||
|
||||
static TCGv compute_ldst_addr_typeb(DisasContext *dc, int ra, int imm)
|
||||
{
|
||||
TCGv ret;
|
||||
TCGv_i32 ret;
|
||||
|
||||
/* If any of the regs is r0, set t to the value of the other reg. */
|
||||
if (ra && imm) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue