Ignore:
Timestamp:
Apr 18, 2019, 2:59:09 PM (5 years ago)
Author:
tdelisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
8c3a0336
Parents:
3c06bba
Message:

x87 and SSE flags are now only saved by threads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/invoke.c

    r3c06bba rdeca0f5  
    124124        struct FakeStack {
    125125            void *fixedRegisters[3];                    // fixed registers ebx, edi, esi (popped on 1st uSwitch, values unimportant)
    126             uint32_t mxcr;                        // SSE Status and Control bits (control bits are preserved across function calls)
    127             uint16_t fcw;                         // X97 FPU control word (preserved across function calls)
    128126            void *rturn;                          // where to go on return from uSwitch
    129127            void *dummyReturn;                          // fake return compiler would have pushed on call to uInvoke
     
    140138        fs->argument[0] = this;     // argument to invoke
    141139        fs->rturn = invoke;
    142         fs->mxcr = 0x1F80; //Vol. 2A 3-520
    143         fs->fcw = 0x037F;  //Vol. 1 8-7
    144140
    145141#elif defined( __x86_64 )
     
    147143        struct FakeStack {
    148144                void *fixedRegisters[5];            // fixed registers rbx, r12, r13, r14, r15
    149                 uint32_t mxcr;                      // SSE Status and Control bits (control bits are preserved across function calls)
    150                 uint16_t fcw;                       // X97 FPU control word (preserved across function calls)
    151145                void *rturn;                        // where to go on return from uSwitch
    152146                void *dummyReturn;                  // NULL return address to provide proper alignment
     
    162156        fs->fixedRegisters[0] = this;
    163157        fs->fixedRegisters[1] = invoke;
    164         fs->mxcr = 0x1F80; //Vol. 2A 3-520
    165         fs->fcw = 0x037F;  //Vol. 1 8-7
    166158
    167159#elif defined( __ARM_ARCH )
Note: See TracChangeset for help on using the changeset viewer.