Skip to content

Commit

Permalink
target/alpha: Use dest_sink for HW_RET temporary
Browse files Browse the repository at this point in the history
This temp is automatically freed, just like ctx->lit.
But we're about to remove ctx->lit, so use sink instead.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Jul 13, 2021
1 parent 492f85b commit 3e646c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/alpha/translate.c
Expand Up @@ -2717,7 +2717,7 @@ static DisasJumpType translate_one(DisasContext *ctx, uint32_t insn)
/* Pre-EV6 CPUs interpreted this as HW_REI, loading the return
address from EXC_ADDR. This turns out to be useful for our
emulation PALcode, so continue to accept it. */
ctx->lit = vb = tcg_temp_new();
vb = dest_sink(ctx);
tcg_gen_ld_i64(vb, cpu_env, offsetof(CPUAlphaState, exc_addr));
} else {
vb = load_gpr(ctx, rb);
Expand Down

0 comments on commit 3e646c3

Please sign in to comment.