File asl-riscv64.patch of Package asl

Index: asl-current/sysdefs.h
===================================================================
--- asl-current.orig/sysdefs.h
+++ asl-current/sysdefs.h
@@ -1458,6 +1458,39 @@ typedef unsigned long long Card64;
 #endif /* __arm */
 
 /*===========================================================================*/
+/* RISC-V platform */
+
+#if defined __riscv && __riscv_xlen == 64
+
+#define ARCHPRNAME "riscv64"
+
+/*---------------------------------------------------------------------------*/
+/* RISC-V 64-bit linux with GCC */
+
+#if defined __linux__
+#define ARCHSYSNAME "unknown-linux"
+#define DEFSMADE
+#define OPENRDMODE "r"
+#define OPENWRMODE "w"
+#define OPENUPMODE "r+"
+#define IEEEFLOAT
+typedef signed char Integ8;
+typedef unsigned char Card8;
+typedef signed short Integ16;
+typedef unsigned short Card16;
+#define HAS16
+typedef signed int Integ32;
+#define PRIInteg32 "d"
+typedef unsigned int Card32;
+typedef signed long Integ64;
+typedef unsigned long Card64;
+#define HAS64
+#define LOCALE_NLS
+#endif /* __linux__ */
+
+#endif /* __riscv */
+
+/*===========================================================================*/
 /* Misc... */
 
 /*---------------------------------------------------------------------------*/
openSUSE Build Service is sponsored by