Otherwise the first instruction at the new location gets executed from the old space.
Signed-off-by: Sven Schnelle <sv...@stackframe.org> --- target/hppa/translate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 58d7ec1ade..a09112e4ae 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -3777,6 +3777,9 @@ static bool trans_be(DisasContext *ctx, arg_be *a) } copy_iaoq_entry(ctx, cpu_iaoq_b, -1, tmp); tcg_gen_mov_i64(cpu_iasq_b, new_spc); + if (a->n) { + tcg_gen_mov_i64(cpu_iasq_f, new_spc); + } nullify_set(ctx, a->n); } tcg_gen_lookup_and_goto_ptr(); -- 2.43.2