|
|
| version 1.2, 2004/03/24 14:03:52 | version 1.4, 2005/03/12 12:32:54 |
|---|---|
| Line 12 | Line 12 |
| * 2. Redistributions in binary form must reproduce the above copyright | * 2. Redistributions in binary form must reproduce the above copyright |
| * notice, this list of conditions and the following disclaimer in the | * notice, this list of conditions and the following disclaimer in the |
| * documentation and/or other materials provided with the distribution. | * 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 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
| * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| Line 63 cpu_vmemoryread_##width(int idx, UINT32 | Line 61 cpu_vmemoryread_##width(int idx, UINT32 |
| check_memory_break_point(addr, (length), CPU_DR7_RW_RO); \ | check_memory_break_point(addr, (length), CPU_DR7_RW_RO); \ |
| if (!CPU_STAT_PAGING) \ | if (!CPU_STAT_PAGING) \ |
| return cpu_memoryread_##width(addr); \ | 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: \ | range_failure: \ |
| if (idx == CPU_SS_INDEX) { \ | if (idx == CPU_SS_INDEX) { \ |
| Line 113 cpu_vmemorywrite_##width(int idx, UINT32 | Line 111 cpu_vmemorywrite_##width(int idx, UINT32 |
| if (!CPU_STAT_PAGING) { \ | if (!CPU_STAT_PAGING) { \ |
| cpu_memorywrite_##width(addr, value); \ | cpu_memorywrite_##width(addr, value); \ |
| } else { \ | } 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; \ | return; \ |
| \ | \ |