diff options
| author | Alexmitter <alexmitter@alexmitter.org> | 2021-12-30 22:40:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-30 22:40:26 +0100 |
| commit | cc9f770d90b5e8debd8ca047895aa30fe1af3824 (patch) | |
| tree | ec4bbb3f004b06274227c2c676764c087ca25fc7 /src/include | |
| parent | 6a9d399648f64a4293594c66d84b9c1a9865133b (diff) | |
| download | box64-cc9f770d90b5e8debd8ca047895aa30fe1af3824.tar.gz box64-cc9f770d90b5e8debd8ca047895aa30fe1af3824.zip | |
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
Diffstat (limited to 'src/include')
| -rwxr-xr-x | src/include/myalign.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |