diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-09-16 21:56:39 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-11-06 18:49:34 -0800 |
commit | e9efd4bcdc5d94eb9e1bbc53e2d635438ba166a7 (patch) | |
tree | a7f7b6b2009fa24a2ba02bc0eebc1e2c1a08268b /target/hppa/translate.c | |
parent | 84e224d4226001ed73b8da42e4ad155cf80b1eef (diff) | |
download | qemu-e9efd4bcdc5d94eb9e1bbc53e2d635438ba166a7.zip qemu-e9efd4bcdc5d94eb9e1bbc53e2d635438ba166a7.tar.gz qemu-e9efd4bcdc5d94eb9e1bbc53e2d635438ba166a7.tar.bz2 |
target/hppa: Decode d for cmpb instructions
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/hppa/translate.c')
-rw-r--r-- | target/hppa/translate.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/target/hppa/translate.c b/target/hppa/translate.c index e326f63..6cd06fb 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -3091,11 +3091,10 @@ static bool trans_ldo(DisasContext *ctx, arg_ldo *a) } static bool do_cmpb(DisasContext *ctx, unsigned r, TCGv_reg in1, - unsigned c, unsigned f, unsigned n, int disp) + unsigned c, unsigned f, bool d, unsigned n, int disp) { TCGv_reg dest, in2, sv; DisasCond cond; - bool d = false; in2 = load_gpr(ctx, r); dest = tcg_temp_new(); @@ -3113,14 +3112,19 @@ static bool do_cmpb(DisasContext *ctx, unsigned r, TCGv_reg in1, static bool trans_cmpb(DisasContext *ctx, arg_cmpb *a) { + if (!ctx->is_pa20 && a->d) { + return false; + } nullify_over(ctx); - return do_cmpb(ctx, a->r2, load_gpr(ctx, a->r1), a->c, a->f, a->n, a->disp); + return do_cmpb(ctx, a->r2, load_gpr(ctx, a->r1), + a->c, a->f, a->d, a->n, a->disp); } static bool trans_cmpbi(DisasContext *ctx, arg_cmpbi *a) { nullify_over(ctx); - return do_cmpb(ctx, a->r, tcg_constant_reg(a->i), a->c, a->f, a->n, a->disp); + return do_cmpb(ctx, a->r, tcg_constant_reg(a->i), + a->c, a->f, false, a->n, a->disp); } static bool do_addb(DisasContext *ctx, unsigned r, TCGv_reg in1, |