OSDN Git Service

target/alpha: Store set into rx flag
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 8 Jul 2021 01:22:19 +0000 (18:22 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 13 Jul 2021 15:13:19 +0000 (08:13 -0700)
A paste-o meant that we wrote back the existing value
of the RX flag rather than changing it to TMP.

Use tcg_constant_i64 while we're at it.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/alpha/translate.c

index 833d3ba..b439b57 100644 (file)
@@ -1084,15 +1084,11 @@ static void gen_msk_l(DisasContext *ctx, TCGv vc, TCGv va, int rb, bool islit,
 
 static void gen_rx(DisasContext *ctx, int ra, int set)
 {
-    TCGv tmp;
-
     if (ra != 31) {
         ld_flag_byte(ctx->ir[ra], ENV_FLAG_RX_SHIFT);
     }
 
-    tmp = tcg_const_i64(set);
-    st_flag_byte(ctx->ir[ra], ENV_FLAG_RX_SHIFT);
-    tcg_temp_free(tmp);
+    st_flag_byte(tcg_constant_i64(set), ENV_FLAG_RX_SHIFT);
 }
 
 static DisasJumpType gen_call_pal(DisasContext *ctx, int palcode)