Skip to content

Commit

Permalink
target/hppa: Decode ADDB double-word
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Nov 7, 2023
1 parent c65c3ee commit f25d316
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions target/hppa/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -3143,6 +3143,17 @@ static bool do_addb(DisasContext *ctx, unsigned r, TCGv_reg in1,
DisasCond cond;
bool d = false;

/*
* For hppa64, the ADDB conditions change with PSW.W,
* dropping ZNV, SV, OD in favor of double-word EQ, LT, LE.
*/
if (ctx->tb_flags & PSW_W) {
d = c >= 5;
if (d) {
c &= 3;
}
}

in2 = load_gpr(ctx, r);
dest = tcg_temp_new();
sv = NULL;
Expand Down

0 comments on commit f25d316

Please sign in to comment.