--- np2/i386c/ia32/cpu_mem.mcr 2004/03/24 14:03:52 1.2 +++ np2/i386c/ia32/cpu_mem.mcr 2005/03/12 12:32:54 1.4 @@ -1,4 +1,4 @@ -/* $Id: cpu_mem.mcr,v 1.2 2004/03/24 14:03:52 monaka Exp $ */ +/* $Id: cpu_mem.mcr,v 1.4 2005/03/12 12:32:54 monaka Exp $ */ /* * Copyright (c) 2004 NONAKA Kimihiro @@ -12,8 +12,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES @@ -63,7 +61,7 @@ cpu_vmemoryread_##width(int idx, UINT32 check_memory_break_point(addr, (length), CPU_DR7_RW_RO); \ if (!CPU_STAT_PAGING) \ return cpu_memoryread_##width(addr); \ - return cpu_lmemoryread_##width(addr, CPU_STAT_USER_MODE); \ + return cpu_linear_memory_read_##width(addr, CPU_PAGE_READ_DATA | CPU_STAT_USER_MODE); \ \ range_failure: \ if (idx == CPU_SS_INDEX) { \ @@ -113,7 +111,7 @@ cpu_vmemorywrite_##width(int idx, UINT32 if (!CPU_STAT_PAGING) { \ cpu_memorywrite_##width(addr, value); \ } else { \ - cpu_lmemorywrite_##width(addr, value, CPU_STAT_USER_MODE); \ + cpu_linear_memory_write_##width(addr, value, CPU_PAGE_WRITE_DATA | CPU_STAT_USER_MODE); \ } \ return; \ \