This is an automated email from Gerrit.

"Lazar Aleksic <[email protected]>" just uploaded a new patch set to Gerrit, 
which you can find at https://review.openocd.org/c/openocd/+/9750

-- gerrit

commit fa8e5941d0c5cfdf4ec0641ace142ccaa11671f1
Author: Lazar Aleksic <[email protected]>
Date:   Mon Jun 22 03:43:54 2026 +0200

    target: fix capstone v6 alpha7+ CS_MODE_RISCVC rename
    
    CS_MODE_RISCVC was renamed to CS_MODE_RISCV_C in capstone v6 alpha7+
    with no backward compat #define. Add #define before #include <capstone.h>
    so the old name resolves on all capstone versions.
    
    Change-Id: I1fc343c7f4f40ab0b9902b72fa8f010e1a15d2e3
    Signed-off-by: Lazar Aleksic <[email protected]>

diff --git a/src/target/oocd_capstone.c b/src/target/oocd_capstone.c
index 05ae4d21e2..ab88a06c05 100644
--- a/src/target/oocd_capstone.c
+++ b/src/target/oocd_capstone.c
@@ -9,6 +9,9 @@
 #include "config.h"
 #endif
 
+/* Forward+backward compat: CS_MODE_RISCVC -> CS_MODE_RISCV_C rename.
+ * Pre-rename before including capstone.h so it works on all versions. */
+#define CS_MODE_RISCVC CS_MODE_RISCV_C
 #include <capstone.h>
 #include <stdint.h>
 #include <stdio.h>

-- 

Reply via email to