diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-03-16 20:28:50 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-03-16 20:28:50 +0000 |
commit | 1a9353d258aba69afd8a389bf5fb705caab12ce0 (patch) | |
tree | 6d82000351db013b87af23a2f554bdd5a5bf6b5a /op-i386.c | |
parent | 6dbad63eef5947c6c8750e44f408138779b6d0bb (diff) |
added loop/xadd/cmpxchg support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@29 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'op-i386.c')
-rw-r--r-- | op-i386.c | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -2085,3 +2085,22 @@ void OPPROTO op_fldcw_A0(void) fesetround(rnd_type); } +void OPPROTO op_fclex(void) +{ + env->fpus &= 0x7f00; +} + +void OPPROTO op_fninit(void) +{ + env->fpus = 0; + env->fpstt = 0; + env->fpuc = 0x37f; + env->fptags[0] = 1; + env->fptags[1] = 1; + env->fptags[2] = 1; + env->fptags[3] = 1; + env->fptags[4] = 1; + env->fptags[5] = 1; + env->fptags[6] = 1; + env->fptags[7] = 1; +} |