Skip to content

Commit

Permalink
target/hppa: Clear psw_n for BE on use_nullify_skip path
Browse files Browse the repository at this point in the history
Along this path we have already skipped the insn to be
nullified, so the subsequent insn should be executed.

Cc: qemu-stable@nongnu.org
Reported-by: Sven Schnelle <svens@stackframe.org>
Tested-by: Sven Schnelle <svens@stackframe.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
(cherry picked from commit 4a3aa11)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
rth7680 authored and Michael Tokarev committed Apr 1, 2024
1 parent 3cdfd68 commit 35fface
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions target/hppa/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -3819,6 +3819,7 @@ static bool trans_be(DisasContext *ctx, arg_be *a)
copy_iaoq_entry(ctx, cpu_iaoq_b, -1, tmp);
tcg_gen_mov_i64(cpu_iasq_f, new_spc);
tcg_gen_mov_i64(cpu_iasq_b, cpu_iasq_f);
nullify_set(ctx, 0);
} else {
copy_iaoq_entry(ctx, cpu_iaoq_f, ctx->iaoq_b, cpu_iaoq_b);
if (ctx->iaoq_b == -1) {
Expand Down

0 comments on commit 35fface

Please sign in to comment.