Skip to content

Commit bd82119

Browse files
sebhubpalmer-dabbelt
authored andcommitted
Reword fcsr ABI requirement
1 parent 21b8fb1 commit bd82119

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

riscv-elf.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ f28-f31 | ft8-ft11 | Temporary registers | No
7272

7373
*: Floating-point values in callee-saved registers are only preserved across calls if they are no larger than the width of a floating-point register in the targeted ABI. Therefore, these registers can always be considered temporaries if targeting the base integer calling convention.
7474

75-
The Floating-Point Control and Status Register (fcsr) is a thread-local register.
75+
The Floating-Point Control and Status Register (fcsr) must have thread storage
76+
duration in accordance with C11 section 7.6 "Floating-point environment
77+
<fenv.h>".
7678

7779
# <a name=procedure-calling-convention></a> Procedure Calling Convention
7880
## <a name=integer-calling-convention></a> Integer Calling Convention

0 commit comments

Comments
 (0)