Revision 2ee73ac3 target-i386/op.c

b/target-i386/op.c
1738 1738

  
1739 1739
void OPPROTO op_fdiv_ST0_FT0(void)
1740 1740
{
1741
    ST0 /= FT0;
1741
    ST0 = helper_fdiv(ST0, FT0);
1742 1742
}
1743 1743

  
1744 1744
void OPPROTO op_fdivr_ST0_FT0(void)
1745 1745
{
1746
    ST0 = FT0 / ST0;
1746
    ST0 = helper_fdiv(FT0, ST0);
1747 1747
}
1748 1748

  
1749 1749
/* fp operations between STN and ST0 */
......
1772 1772

  
1773 1773
void OPPROTO op_fdiv_STN_ST0(void)
1774 1774
{
1775
    ST(PARAM1) /= ST0;
1775
    CPU86_LDouble *p;
1776
    p = &ST(PARAM1);
1777
    *p = helper_fdiv(*p, ST0);
1776 1778
}
1777 1779

  
1778 1780
void OPPROTO op_fdivr_STN_ST0(void)
1779 1781
{
1780 1782
    CPU86_LDouble *p;
1781 1783
    p = &ST(PARAM1);
1782
    *p = ST0 / *p;
1784
    *p = helper_fdiv(ST0, *p);
1783 1785
}
1784 1786

  
1785 1787
/* misc FPU operations */
......
1959 1961
    env->fpus &= 0x7f00;
1960 1962
}
1961 1963

  
1964
void OPPROTO op_fwait(void)
1965
{
1966
    if (env->fpus & FPUS_SE)
1967
        fpu_raise_exception();
1968
    FORCE_RET();
1969
}
1970

  
1962 1971
void OPPROTO op_fninit(void)
1963 1972
{
1964 1973
    env->fpus = 0;

Also available in: Unified diff