Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150478868
D23741.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
797 B
Referenced Files
None
Subscribers
None
D23741.id.diff
View Options
Index: head/sys/conf/Makefile.riscv
===================================================================
--- head/sys/conf/Makefile.riscv
+++ head/sys/conf/Makefile.riscv
@@ -46,6 +46,8 @@
CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
.endif
+CFLAGS += -DMACHINE_ARCH=\"${TARGET_ARCH}\"
+
# hack because genassym.c includes sys/bus.h which includes these.
genassym.o: bus_if.h device_if.h
Index: head/sys/riscv/include/param.h
===================================================================
--- head/sys/riscv/include/param.h
+++ head/sys/riscv/include/param.h
@@ -46,7 +46,11 @@
#define MACHINE "riscv"
#endif
#ifndef MACHINE_ARCH
+#ifdef __riscv_float_abi_soft
+#define MACHINE_ARCH "riscv64sf"
+#else
#define MACHINE_ARCH "riscv64"
+#endif
#endif
#ifdef SMP
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 2, 2:02 PM (9 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30725152
Default Alt Text
D23741.id.diff (797 B)
Attached To
Mode
D23741: riscv: Set MACHINE_ARCH define based on TARGET_ARCH
Attached
Detach File
Event Timeline
Log In to Comment