[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 5/6] target/hppa: mask privilege bits in mfia
From: |
Sven Schnelle |
Subject: |
[PATCH v2 5/6] target/hppa: mask privilege bits in mfia |
Date: |
Tue, 19 Mar 2024 17:19:20 +0100 |
mfia should return only the iaoq bits without privilege
bits.
Fixes: 98a9cb792c8 ("target-hppa: Implement system and memory-management insns")
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Helge Deller <deller@gmx.de>
---
target/hppa/translate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/hppa/translate.c b/target/hppa/translate.c
index 46da546eb9..51bf1b06c9 100644
--- a/target/hppa/translate.c
+++ b/target/hppa/translate.c
@@ -1961,7 +1961,7 @@ static bool trans_mfia(DisasContext *ctx, arg_mfia *a)
{
unsigned rt = a->t;
TCGv_i64 tmp = dest_gpr(ctx, rt);
- tcg_gen_movi_i64(tmp, ctx->iaoq_f);
+ tcg_gen_movi_i64(tmp, ctx->iaoq_f & ~3ULL);
save_gpr(ctx, rt, tmp);
cond_free(&ctx->null_cond);
--
2.43.2
- [PATCH v2 0/6] few fixes for hppa target, Sven Schnelle, 2024/03/19
- [PATCH v2 1/6] target/hppa: ldcw,s uses static shift of 3, Sven Schnelle, 2024/03/19
- [PATCH v2 2/6] target/hppa: fix shrp for wide mode, Sven Schnelle, 2024/03/19
- [PATCH v2 6/6] target/hppa: fix do_stdby_e(), Sven Schnelle, 2024/03/19
- [PATCH v2 5/6] target/hppa: mask privilege bits in mfia,
Sven Schnelle <=
- [PATCH v2 4/6] target/hppa: exit tb on flush cache instructions, Sven Schnelle, 2024/03/19
- [PATCH v2 3/6] target/hppa: fix access_id check, Sven Schnelle, 2024/03/19