From cc9f770d90b5e8debd8ca047895aa30fe1af3824 Mon Sep 17 00:00:00 2001 From: Alexmitter Date: Thu, 30 Dec 2021 22:40:26 +0100 Subject: Add support for RISCV to myalign.h based on https://github.com/riscv-non-isa/riscv-toolchain-conventions correct preprocessor definition for RISCV is __riscv --- src/include/myalign.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/myalign.h b/src/include/myalign.h index 47072bc9..d627b25d 100755 --- a/src/include/myalign.h +++ b/src/include/myalign.h @@ -90,7 +90,7 @@ typedef struct va_list { memcpy(&p[6], emu->xmm, 8*16); \ } -#elif defined(__loongarch64) || defined(__powerpc64__) +#elif defined(__loongarch64) || defined(__powerpc64__) || defined(__riscv) #define CREATE_SYSV_VALIST(A) \ va_list sysv_varargs = (va_list)A // not creating CONVERT_VALIST(A) on purpose @@ -170,4 +170,4 @@ void AlignEpollEvent(void* dest, void* source, int nbr); // x86 -> Arm void UnalignSemidDs(void *dest, const void* source); void AlignSemidDs(void *dest, const void* source); -uintptr_t getVArgs(x64emu_t* emu, int pos, uintptr_t* b, int N); \ No newline at end of file +uintptr_t getVArgs(x64emu_t* emu, int pos, uintptr_t* b, int N); -- cgit 1.4.1