mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-23 18:12:00 -06:00
target/alpha: Store set into rx flag
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>
This commit is contained in:
parent
84abdd7d27
commit
492f85b92a
1 changed files with 1 additions and 5 deletions
|
@ -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)
|
static void gen_rx(DisasContext *ctx, int ra, int set)
|
||||||
{
|
{
|
||||||
TCGv tmp;
|
|
||||||
|
|
||||||
if (ra != 31) {
|
if (ra != 31) {
|
||||||
ld_flag_byte(ctx->ir[ra], ENV_FLAG_RX_SHIFT);
|
ld_flag_byte(ctx->ir[ra], ENV_FLAG_RX_SHIFT);
|
||||||
}
|
}
|
||||||
|
|
||||||
tmp = tcg_const_i64(set);
|
st_flag_byte(tcg_constant_i64(set), ENV_FLAG_RX_SHIFT);
|
||||||
st_flag_byte(ctx->ir[ra], ENV_FLAG_RX_SHIFT);
|
|
||||||
tcg_temp_free(tmp);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static DisasJumpType gen_call_pal(DisasContext *ctx, int palcode)
|
static DisasJumpType gen_call_pal(DisasContext *ctx, int palcode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue