posix/arch/signal: Fix riscv64 arch detection

* We decided to not create our own custom define checks
  and go with the standard ones for riscv64.
* clang doesn't define __RISCV64__ either, so this moves
  the clang build of riscv64 a bit further

Change-Id: I2a6c3751168a898c1617b32f46055a9ba1609e2b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4861
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
Alexander von Gluck IV 2022-01-11 14:03:04 -06:00 committed by Adrien Destugues
parent d493aae3c4
commit 901fc0c75f
1 changed files with 2 additions and 3 deletions

View File

@ -10,15 +10,14 @@
* Architecture-specific structure passed to signal handlers
*/
// TODO: gcc7's RISCV doesn't seem real keen on identifying 32 vs 64 yet.
#if defined(__RISCV64__) || defined(__RISCV__)
#if (defined(__riscv) && __riscv_xlen == 64)
struct vregs {
ulong x[31];
ulong pc;
double f[32];
ulong fcsr;
};
#endif /* defined(__RISCV64__) */
#endif /* (defined(__riscv) && __riscv_xlen == 64) */
#endif /* _ARCH_RISCV64_SIGNAL_H_ */