Skip to content

Commit

Permalink
Fix up final FPU-registers for FreeBSD x86_64.
Browse files Browse the repository at this point in the history
FreeBSD now builds without compilation errors. For FreeBSD and glory!

                ,        ,
               /(        )`
               \ \___   / |
               /- _  `-/  '
              (/\/ \ \   /\
              / /   | `    \
              O O   ) /    |
              `-^--'`<     '
             (_.)  _  )   /
              `.___/`    /
                `-----' /
   <----.     __ / __   \
   <----|====O)))==) \) /====
   <----'    `--' `.__,' \
                |        |
                 \       /       /\
            ______( (_  / \______/
          ,'  ,-----'   |
          `--{__________)

This closes https://github.com/dotnet/coreclr/issues/594#issuecomment-93995183
  • Loading branch information
josteink committed Apr 17, 2015
1 parent 055ae91 commit 77d771c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/pal/src/include/pal/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,7 @@ typedef ucontext_t native_context_t;
#define FPREG_DataSelector(uc) *((WORD*) &(FPSTATE(uc)->sv_env.en_rdp) + 2)

#define FPREG_Xmm(uc, index) *(M128A*) &(FPSTATE(uc)->sv_xmm[index])

// TODO: port this register to FreeBSD.
// #define FPREG_St(uc, index) *(M128A*)&((uc)->mc_fpstate[index])
// something like this?
// #define FPREG_St(uc, index) *(M128A*)&(FPSTATE(uc)->sv_xstate.sx_ymm[index])
#define FPREG_St(uc, index) *(M128A*) &(FPSTATE(uc)->sv_fp[index].fp_acc)

#else // BIT64

Expand Down

0 comments on commit 77d771c

Please sign in to comment.