aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle André Vadla Ravnås <oleavr@gmail.com>2024-01-20 16:44:05 +0100
committerGitHub <noreply@github.com>2024-01-20 23:44:05 +0800
commitaaf6a53224f56640a024d4de09cd6e62e3b233c4 (patch)
tree8d14e2d987e649f3e6bdde297f3c59bf85d9b5a7
parent61273ff88bb37e7a4319db80279c459d46bb3a75 (diff)
downloadcapstone-aaf6a53224f56640a024d4de09cd6e62e3b233c4.tar.gz
cstool: Fix ppc_br_hint comparison (#2254)
-rw-r--r--cstool/cstool_powerpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cstool/cstool_powerpc.c b/cstool/cstool_powerpc.c
index b46c3113..bb63efbb 100644
--- a/cstool/cstool_powerpc.c
+++ b/cstool/cstool_powerpc.c
@@ -149,7 +149,7 @@ void print_insn_detail_ppc(csh handle, cs_insn *ins)
}
if (ppc->bc.pred_ctr != PPC_PRED_INVALID)
printf("\t\tpred CTR: %s\n", get_pred_name(ppc->bc.pred_ctr));
- if (ppc->bc.hint != PPC_BH_INVALID)
+ if (ppc->bc.hint != PPC_BR_NOT_GIVEN)
printf("\t\thint: %s\n", get_pred_hint(ppc->bc.hint));
}