From fa37536640b8305a7ed1f656f4979b7f7ea425db Mon Sep 17 00:00:00 2001 From: moui0 <69300707+moui0@users.noreply.github.com> Date: Tue, 3 Oct 2023 03:40:10 +0800 Subject: [PATCH] support RISC-V64: define `arch_host` (#354) --- pyvex_c/pyvex.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyvex_c/pyvex.c b/pyvex_c/pyvex.c index 56cbf5b6..caf6d554 100644 --- a/pyvex_c/pyvex.c +++ b/pyvex_c/pyvex.c @@ -179,6 +179,10 @@ int vex_init() { # endif #elif defined(__powerpc__) vta.arch_host = VexArchPPC64; +#elif defined(__riscv) +# if defined(__riscv_xlen) && (__riscv_xlen == 64) + vta.arch_host = VexArchRISCV64; +# endif #else #error "Unsupported host arch" #endif