Skip to content

Commit

Permalink
target/hppa: Use only low 2 immediate bits for PROBEI
Browse files Browse the repository at this point in the history
During the conversion to decodetree, the 2-bit mask was lost.

Fixes: deee69a ("target/hppa: Convert memory management insns")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Nov 13, 2023
1 parent 881d107 commit e5d487c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/hppa/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -2297,7 +2297,7 @@ static bool trans_probe(DisasContext *ctx, arg_probe *a)
form_gva(ctx, &addr, &ofs, a->b, 0, 0, 0, a->sp, 0, false);

if (a->imm) {
level = tcg_constant_i32(a->ri);
level = tcg_constant_i32(a->ri & 3);
} else {
level = tcg_temp_new_i32();
tcg_gen_extrl_i64_i32(level, load_gpr(ctx, a->ri));
Expand Down

0 comments on commit e5d487c

Please sign in to comment.