Search
lxdream.org :: lxdream/src/sh4/sh4core.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.c
changeset 490:1e0f9940e064
prev430:467519b050f4
next550:a27e31340147
author nkeynes
date Thu Nov 08 11:54:16 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Add sh4ptr_t type, start converting bare pointer refs to it
file annotate diff log raw
1.1 --- a/src/sh4/sh4core.c Mon Oct 08 12:09:06 2007 +0000
1.2 +++ b/src/sh4/sh4core.c Thu Nov 08 11:54:16 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4core.c,v 1.49 2007-10-08 12:06:01 nkeynes Exp $
1.6 + * $Id: sh4core.c,v 1.50 2007-11-04 08:49:18 nkeynes Exp $
1.7 *
1.8 * SH4 emulation core, and parent module for all the SH4 peripheral
1.9 * modules.
1.10 @@ -241,7 +241,7 @@
1.11 ir = sh4_icache[(pc&0xFFF)>>1];
1.12 } else {
1.13 sh4_icache = (uint16_t *)mem_get_page(pc);
1.14 - if( ((uint32_t)sh4_icache) < MAX_IO_REGIONS ) {
1.15 + if( ((uintptr_t)sh4_icache) < MAX_IO_REGIONS ) {
1.16 /* If someone's actually been so daft as to try to execute out of an IO
1.17 * region, fallback on the full-blown memory read
1.18 */
.