[pk, sim] added FPU emulation support to proxy kernel
[riscv-isa-sim.git] / riscv / decode.h
index 56157d3e4eb2a2018b2c726f8b64cfbe29b50ea4..810af3f07635d4cf3c275e9f28ada3850b8396d4 100644 (file)
@@ -3,10 +3,25 @@
 
 #define __STDC_LIMIT_MACROS
 #include <stdint.h>
+
+#include "config.h"
+
+#ifdef RISCV_ENABLE_64BIT
+# define support_64bit 1
+#else
+# define support_64bit 0
+#endif
+
+#ifdef RISCV_ENABLE_FPU
+# define support_fp 1
+#else
+# define support_fp 0
+#endif
+
+
 typedef int int128_t __attribute__((mode(TI)));
 typedef unsigned int uint128_t __attribute__((mode(TI)));
 
-#define support_64bit 1
 typedef int64_t sreg_t;
 typedef uint64_t reg_t;
 typedef uint64_t freg_t;