Raymond Toy pushed to branch issue-355-solaris-x86-fp-trap-handler at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • src/lisp/solaris-os.c
    ... ... @@ -647,7 +647,7 @@ os_sigcontext_x87_modes(ucontext_t *scp)
    647 647
         cw = fpr->fp_reg_set.fpchip_state.state[0] & 0xffff;
    
    648 648
         sw = fpr->fp_reg_set.fpchip_state.state[1] & 0xffff;
    
    649 649
     
    
    650
    -    DPRINTF(1, (stderr, "os_sigcontext_x87 cw, sw = #x%04x #x%04x\n", cw, sw));
    
    650
    +    DPRINTF(0, (stderr, "os_sigcontext_x87 cw, sw = #x%04x #x%04x\n", cw, sw));
    
    651 651
     
    
    652 652
         return (cw << 16) | sw;
    
    653 653
     }
    
    ... ... @@ -661,12 +661,12 @@ os_set_sigcontext_x87_modes(ucontext_t *scp, unsigned int modes)
    661 661
     
    
    662 662
         sw = modes & 0xffff;
    
    663 663
         cw = (modes >> 16) & 0xffff;
    
    664
    -    
    
    664
    +
    
    665 665
         fpr->fp_reg_set.fpchip_state.state[0] = cw;
    
    666 666
         fpr->fp_reg_set.fpchip_state.state[1] = sw;
    
    667 667
     
    
    668
    -    DPRINTF(1, (stderr, "os_set_sigcontext_x87 modes = #x%08x\n", modes));
    
    669
    -    DPRINTF(1, (stderr, "os_set_sigcontext_x87 cw, sw = #x%04x #x%04x\n", cw, sw));
    
    668
    +    DPRINTF(0, (stderr, "os_set_sigcontext_x87 modes = #x%08x\n", modes));
    
    669
    +    DPRINTF(0, (stderr, "os_set_sigcontext_x87 cw, sw = #x%04x #x%04x\n", cw, sw));
    
    670 670
     }
    
    671 671
     
    
    672 672
     
    
    ... ... @@ -679,7 +679,7 @@ os_sigcontext_sse2_modes(ucontext_t *scp)
    679 679
     
    
    680 680
         fpr = &scp->uc_mcontext.fpregs;
    
    681 681
         mxcsr = fpr->fp_reg_set.fpchip_state.mxcsr;
    
    682
    -    DPRINTF(1, (stderr, "os_sigcontext_sse2 mxcsr = #x%08lx\n", mxcsr));
    
    682
    +    DPRINTF(0, (stderr, "os_sigcontext_sse2 mxcsr = #x%08lx\n", mxcsr));
    
    683 683
     
    
    684 684
         return mxcsr;
    
    685 685
     }
    
    ... ... @@ -692,7 +692,7 @@ os_set_sigcontext_sse2_modes(ucontext_t *scp, unsigned int modes)
    692 692
     
    
    693 693
         fpr->fp_reg_set.fpchip_state.mxcsr = modes;
    
    694 694
     
    
    695
    -    DPRINTF(1, (stderr, "os_set_sigcontext_sse2 mxcsr = #x%08x\n", modes));
    
    695
    +    DPRINTF(0, (stderr, "os_set_sigcontext_sse2 mxcsr = #x%08x\n", modes));
    
    696 696
     }
    
    697 697
     #endif
    
    698 698
     
    
    ... ... @@ -702,19 +702,19 @@ os_set_sigcontext_fpu_modes(ucontext_t *scp, uint32_t modes)
    702 702
         unsigned short cw, sw;
    
    703 703
         fpregset_t *fpr;
    
    704 704
         unsigned int state;
    
    705
    -        
    
    705
    +
    
    706 706
         fpr = &scp->uc_mcontext.fpregs;
    
    707 707
     
    
    708 708
         cw = modes & 0x3f;
    
    709 709
         sw = (modes >> 7) &0x3f;
    
    710 710
     
    
    711
    -    DPRINTF(1, (stderr, "modes = 0x%08x\n", modes));
    
    712
    -    DPRINTF(1, (stderr, "cw = 0x%04x\n", cw));
    
    713
    -    DPRINTF(1, (stderr, "sw = 0x%04x\n", sw));
    
    711
    +    DPRINTF(0, (stderr, "modes = 0x%08x\n", modes));
    
    712
    +    DPRINTF(0, (stderr, "cw = 0x%04x\n", cw));
    
    713
    +    DPRINTF(0, (stderr, "sw = 0x%04x\n", sw));
    
    714 714
     
    
    715 715
         fpr->fp_reg_set.fpchip_state.state[0] = cw;
    
    716 716
         fpr->fp_reg_set.fpchip_state.state[1] = sw;
    
    717
    -    
    
    717
    +
    
    718 718
     #ifdef FEATURE_SSE2
    
    719 719
         /*
    
    720 720
          * Add in the SSE2 part, if we're running the sse2 core.
    
    ... ... @@ -722,7 +722,7 @@ os_set_sigcontext_fpu_modes(ucontext_t *scp, uint32_t modes)
    722 722
         if (fpu_mode == SSE2) {
    
    723 723
     	unsigned long mxcsr = modes & 0xffff;
    
    724 724
     
    
    725
    -        DPRINTF(1, (stderr, "SSE2 modes = %08lx\n", mxcsr));
    
    725
    +        DPRINTF(0, (stderr, "SSE2 modes = %08lx\n", mxcsr));
    
    726 726
             fpr->fp_reg_set.fpchip_state.mxcsr = mxcsr;
    
    727 727
     
    
    728 728
     	modes |= mxcsr;