[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/7] target/hppa: copy new_spc to iasq_f on be,n instruction
From: |
Sven Schnelle |
Subject: |
[PATCH 5/7] target/hppa: copy new_spc to iasq_f on be,n instruction |
Date: |
Sun, 17 Mar 2024 23:14:29 +0100 |
Otherwise the first instruction at the new location gets executed from
the old space.
Signed-off-by: Sven Schnelle <svens@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
- [PATCH 0/7] few fixes for hppa target, Sven Schnelle, 2024/03/17
- [PATCH 1/7] target/hppa: ldcw,s uses static shift of 3, Sven Schnelle, 2024/03/17
- [PATCH 5/7] target/hppa: copy new_spc to iasq_f on be,n instruction,
Sven Schnelle <=
- [PATCH 2/7] target/hppa: fix shrp for wide mode, Sven Schnelle, 2024/03/17
- [PATCH 4/7] target/hppa: exit tb on flush cache instructions, Sven Schnelle, 2024/03/17
- [PATCH 3/7] target/hppa: fix access_id check, Sven Schnelle, 2024/03/17