Skip to content

Commit 77d771c

Browse files
committed
Fix up final FPU-registers for FreeBSD x86_64.
FreeBSD now builds without compilation errors. For FreeBSD and glory! , , /( )` \ \___ / | /- _ `-/ ' (/\/ \ \ /\ / / | ` \ O O ) / | `-^--'`< ' (_.) _ ) / `.___/` / `-----' / <----. __ / __ \ <----|====O)))==) \) /==== <----' `--' `.__,' \ | | \ / /\ ______( (_ / \______/ ,' ,-----' | `--{__________) This closes https://github.com/dotnet/coreclr/issues/594#issuecomment-93995183
1 parent 055ae91 commit 77d771c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/pal/src/include/pal/context.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,7 @@ typedef ucontext_t native_context_t;
137137
#define FPREG_DataSelector(uc) *((WORD*) &(FPSTATE(uc)->sv_env.en_rdp) + 2)
138138

139139
#define FPREG_Xmm(uc, index) *(M128A*) &(FPSTATE(uc)->sv_xmm[index])
140-
141-
// TODO: port this register to FreeBSD.
142-
// #define FPREG_St(uc, index) *(M128A*)&((uc)->mc_fpstate[index])
143-
// something like this?
144-
// #define FPREG_St(uc, index) *(M128A*)&(FPSTATE(uc)->sv_xstate.sx_ymm[index])
140+
#define FPREG_St(uc, index) *(M128A*) &(FPSTATE(uc)->sv_fp[index].fp_acc)
145141

146142
#else // BIT64
147143

0 commit comments

Comments
 (0)