--- np2/i386c/ia32/ia32.c 2003/12/08 00:55:31 1.1 +++ np2/i386c/ia32/ia32.c 2004/01/13 16:33:07 1.5 @@ -1,4 +1,4 @@ -/* $Id: ia32.c,v 1.1 2003/12/08 00:55:31 yui Exp $ */ +/* $Id: ia32.c,v 1.5 2004/01/13 16:33:07 monaka Exp $ */ /* * Copyright (c) 2002-2003 NONAKA Kimihiro @@ -32,14 +32,8 @@ #include "ia32.mcr" -CPU_REGS cpu_regs; -CPU_SYSREGS cpu_sysregs; -CPU_STAT cpu_stat; -CPU_INST cpu_inst; -CPU_INST cpu_inst_default; I386CORE i386core; -// #if defined(USE_ASM) BYTE iflags[] = { 0x44, 0x00, 0x00, 0x04, 0x00, 0x04, 0x04, 0x00, 0x00, 0x04, 0x04, 0x00, 0x04, 0x00, 0x00, 0x04, @@ -74,7 +68,6 @@ BYTE iflags[] = { 0x84, 0x80, 0x80, 0x84, 0x80, 0x84, 0x84, 0x80, 0x80, 0x84, 0x84, 0x80, 0x84, 0x80, 0x80, 0x84, }; -// #endif /* USE_ASM */ BYTE *reg8_b20[0x100]; BYTE *reg8_b53[0x100]; @@ -89,10 +82,8 @@ ia32_init(void) { int i; - memset(&cpu_regs, 0, sizeof(cpu_regs)); - memset(&cpu_sysregs, 0, sizeof(cpu_sysregs)); - memset(&cpu_stat, 0, sizeof(cpu_stat)); - memset(&cpu_inst_default, 0, sizeof(cpu_inst_default)); + memset(&i386core.s, 0, sizeof(i386core.s)); + CPU_STATSAVE.cpu_inst_default.seg_base = (DWORD)-1; CPU_EDX = (CPU_FAMILY << 8) | (CPU_MODEL << 4) | CPU_STEPPING; CPU_EFLAG = 2; @@ -135,7 +126,7 @@ ia32_init(void) } resolve_init(); -#if defined(SUPPORT_TLB) +#if defined(IA32_SUPPORT_TLB) tlb_init(); #endif #ifdef USE_FPU