--- np2/i386c/ia32/instructions/system_inst.c 2004/06/16 12:49:01 1.29 +++ np2/i386c/ia32/instructions/system_inst.c 2005/03/05 16:47:05 1.30 @@ -1,4 +1,4 @@ -/* $Id: system_inst.c,v 1.29 2004/06/16 12:49:01 monaka Exp $ */ +/* $Id: system_inst.c,v 1.30 2005/03/05 16:47:05 monaka Exp $ */ /* * Copyright (c) 2003 NONAKA Kimihiro @@ -288,11 +288,11 @@ MOV_CdRd(void) reg = CPU_CR0; src &= CPU_CR0_ALL; -#ifndef USE_FPU +#if defined(USE_FPU) + src |= CPU_CR0_ET; /* FPU present */ +#else src |= CPU_CR0_EM | CPU_CR0_NE; src &= ~(CPU_CR0_MP | CPU_CR0_ET); -#else - src |= CPU_CR0_ET; /* FPU present */ #endif CPU_CR0 = src; VERBOSE(("MOV_CdRd: %04x:%08x: cr0: 0x%08x <- 0x%08x(%s)", CPU_CS, CPU_PREV_EIP, reg, CPU_CR0, reg32_str[op & 7]));