| 193 | |
| 194 | |
| 195 | void FPU::FINIT() { |
| 196 | #ifdef LOG_FPU |
| 197 | if (!fpuLogFile.isOpen()) { |
| 198 | fpuLogFile.createNew("fpu2.txt"); |
| 199 | } |
| 200 | #endif |
| 201 | SetCW(0x37F); |
| 202 | this->sw = 0; |
| 203 | this->top = FPU_GET_TOP(this); |
| 204 | this->tags[0] = TAG_Empty; |
| 205 | this->tags[1] = TAG_Empty; |
| 206 | this->tags[2] = TAG_Empty; |
| 207 | this->tags[3] = TAG_Empty; |
| 208 | this->tags[4] = TAG_Empty; |
| 209 | this->tags[5] = TAG_Empty; |
| 210 | this->tags[6] = TAG_Empty; |
| 211 | this->tags[7] = TAG_Empty; |
| 212 | this->isMMXInUse = false; |
| 213 | memset(isRegCached, 0, sizeof(isRegCached)); |
| 214 | } |
| 215 | |
| 216 | void FPU::FCLEX() { |
| 217 | this->sw &= 0x7f00; //should clear exceptions |
no test coverage detected