From ca586ea48db3df3a28a9ab01c100e66cb3bccb54 Mon Sep 17 00:00:00 2001 From: Lennart Braun Date: Thu, 20 Jul 2017 17:48:20 +0200 Subject: [PATCH] Fix regression with capstone 3 (#7977) The following constants are part of capstone-next and not available in capstone v3: * PPC_INS_LBZCIX * PPC_INS_LDCIX * PPC_INS_LWZCIX --- libr/anal/p/anal_ppc_cs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libr/anal/p/anal_ppc_cs.c b/libr/anal/p/anal_ppc_cs.c index 8cb8157d40..149eaef2bb 100644 --- a/libr/anal/p/anal_ppc_cs.c +++ b/libr/anal/p/anal_ppc_cs.c @@ -687,7 +687,9 @@ static int analop(RAnal *a, RAnalOp *op, ut64 addr, const ut8 *buf, int len) { esilprintf (op, "%s,%s", ARG (0), ARG2 (1, "=[8]")); break; case PPC_INS_LBZ: +#if CS_API_MAJOR >= 4 case PPC_INS_LBZCIX: +#endif case PPC_INS_LBZU: case PPC_INS_LBZUX: case PPC_INS_LBZX: @@ -696,7 +698,9 @@ static int analop(RAnal *a, RAnalOp *op, ut64 addr, const ut8 *buf, int len) { break; case PPC_INS_LD: case PPC_INS_LDARX: +#if CS_API_MAJOR >= 4 case PPC_INS_LDCIX: +#endif case PPC_INS_LDU: case PPC_INS_LDUX: case PPC_INS_LDX: @@ -736,7 +740,9 @@ static int analop(RAnal *a, RAnalOp *op, ut64 addr, const ut8 *buf, int len) { case PPC_INS_LWAUX: case PPC_INS_LWAX: case PPC_INS_LWZ: +#if CS_API_MAJOR >= 4 case PPC_INS_LWZCIX: +#endif case PPC_INS_LWZU: case PPC_INS_LWZUX: case PPC_INS_LWZX: