diff --git a/pub/libvex_basictypes.h b/pub/libvex_basictypes.h index 4dbd5b332..1f6b68d36 100644 --- a/pub/libvex_basictypes.h +++ b/pub/libvex_basictypes.h @@ -213,6 +213,12 @@ typedef unsigned long HWord; # define VEX_HOST_WORDSIZE 4 # define VEX_REGPARM(_n) /* */ +#elif defined(__riscv) && defined(__riscv_xlen) +# if (__riscv_xlen == 64) +# define VEX_HOST_WORDSIZE 8 +# define VEX_REGPARM(_n) /* */ +# endif + #elif defined(__tilegx__) # define VEX_HOST_WORDSIZE 8 # define VEX_REGPARM(_n) /* */