--- np2/i386c/ia32/cpu.h 2004/01/05 06:50:15 1.6 +++ np2/i386c/ia32/cpu.h 2004/01/15 15:50:33 1.8 @@ -1,4 +1,4 @@ -/* $Id: cpu.h,v 1.6 2004/01/05 06:50:15 yui Exp $ */ +/* $Id: cpu.h,v 1.8 2004/01/15 15:50:33 monaka Exp $ */ /* * Copyright (c) 2002-2003 NONAKA Kimihiro @@ -143,7 +143,6 @@ typedef struct { descriptor_t sreg[CPU_SEGREG_NUM]; UINT32 adrsmask; -// DWORD inport; // -> i386core.e.inport DWORD ovflag; BYTE ss_32; @@ -209,6 +208,7 @@ extern I386CORE i386core; #define CPU_BASECLOCK i386core.s.baseclock #define CPU_CLOCK i386core.s.clock #define CPU_ITFBANK i386core.s.itfbank +#define CPU_RAM_D000 i386core.s.ram_d0 #define CPU_TYPE i386core.s.cpu_type #define CPUTYPE_V30 0x01 @@ -291,7 +291,7 @@ do { \ #define CPU_STAT_SREG_INIT(n) \ do { \ descriptor_t sd; \ - memset(&CPU_STAT_SREG(n), 0, sizeof(CPU_STAT_SREG(n))); \ +\ memset(&sd, 0, sizeof(sd)); \ sd.u.seg.limit = 0xffff; \ CPU_SET_SEGDESC_DEFAULT(&sd, (n), 0); \