Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170238846
D23402.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
557 B
Referenced Files
None
Subscribers
None
D23402.id.diff
View Options
Index: head/sys/riscv/include/riscvreg.h
===================================================================
--- head/sys/riscv/include/riscvreg.h
+++ head/sys/riscv/include/riscvreg.h
@@ -72,8 +72,11 @@
#define SSTATUS_XS_SHIFT 15
#define SSTATUS_XS_MASK (0x3 << SSTATUS_XS_SHIFT)
#define SSTATUS_SUM (1 << 18)
-#define SSTATUS32_SD (1 << 63)
-#define SSTATUS64_SD (1 << 31)
+#if __riscv_xlen == 64
+#define SSTATUS_SD (1 << 63)
+#else
+#define SSTATUS_SD (1 << 31)
+#endif
#define MSTATUS_UIE (1 << 0)
#define MSTATUS_SIE (1 << 1)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Sep 4, 11:57 PM (9 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38284974
Default Alt Text
D23402.id.diff (557 B)
Attached To
Mode
D23402: Fix definition of SSTATUS_SD
Attached
Detach File
Event Timeline
Log In to Comment