Skip to content

Commit d744fc4

Browse files
committed
adapt to new decoder
1 parent a7e9d70 commit d744fc4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

target/arm/tcg/translate-a64.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8370,8 +8370,8 @@ static bool do_addsub_ext(DisasContext *s, arg_addsub_ext *a,
83708370

83718371
//// --- Begin LibAFL code ---
83728372

8373-
if (rd == 31 && sub_op) // cmp xX, xY
8374-
libafl_gen_cmp(s->pc_curr, tcg_rn, tcg_rm, sf ? MO_64 : MO_32);
8373+
if (a->rd == 31 && sub_op) // cmp xX, xY
8374+
libafl_gen_cmp(s->pc_curr, tcg_rn, tcg_rm, a->sf ? MO_64 : MO_32);
83758375

83768376
//// --- End LibAFL code ---
83778377

@@ -8420,8 +8420,8 @@ static bool do_addsub_reg(DisasContext *s, arg_addsub_shift *a,
84208420

84218421
//// --- Begin LibAFL code ---
84228422

8423-
if (rd == 31 && sub_op) // cmp xX, xY
8424-
libafl_gen_cmp(s->pc_curr, tcg_rn, tcg_rm, sf ? MO_64 : MO_32);
8423+
if (a->rd == 31 && sub_op) // cmp xX, xY
8424+
libafl_gen_cmp(s->pc_curr, tcg_rn, tcg_rm, a->sf ? MO_64 : MO_32);
84258425

84268426
//// --- End LibAFL code ---
84278427

@@ -8616,7 +8616,7 @@ static bool trans_CCMP(DisasContext *s, arg_CCMP *a)
86168616

86178617
//// --- Begin LibAFL code ---
86188618

8619-
libafl_gen_cmp(s->pc_curr, tcg_rn, tcg_y, sf ? MO_64 : MO_32);
8619+
libafl_gen_cmp(s->pc_curr, tcg_rn, tcg_y, a->sf ? MO_64 : MO_32);
86208620

86218621
//// --- End LibAFL code ---
86228622

0 commit comments

Comments
 (0)