--- np2/i386c/ia32/instructions/system_inst.c 2004/01/14 16:14:50 1.6 +++ np2/i386c/ia32/instructions/system_inst.c 2004/01/16 15:18:04 1.8 @@ -1,4 +1,4 @@ -/* $Id: system_inst.c,v 1.6 2004/01/14 16:14:50 monaka Exp $ */ +/* $Id: system_inst.c,v 1.8 2004/01/16 15:18:04 monaka Exp $ */ /* * Copyright (c) 2003 NONAKA Kimihiro @@ -213,7 +213,7 @@ LIDT_Ms(DWORD op) for (i = 0; i < limit; i += 8) { v[0] = cpu_lmemoryread_d(base + i); v[1] = cpu_lmemoryread_d(base + i + 4); - VERBOSE(("LGDT_Ms: %08x: %08x%08x", base + i, v[0], v[1])); + VERBOSE(("LIDT_Ms: %08x: %08x%08x", base + i, v[0], v[1])); } } #endif @@ -340,9 +340,9 @@ MOV_CdRd(void) * 3 = PWT (page level write throgh) */ reg = CPU_CR3; - CPU_CR3 = src & 0xfffff018; + set_CR3(src); + VERBOSE(("MOV_CdRd: %04x:%08x: cr3: 0x%08x -> 0x%08x(%s)", CPU_CS, CPU_PREV_EIP, reg, CPU_CR3, reg32_str[op & 7])); - tlb_flush(FALSE); break; case 4: /* CR4 */