filename | src/sh4/sh4core.c |
changeset | 490:1e0f9940e064 |
prev | 430:467519b050f4 |
next | 550:a27e31340147 |
author | nkeynes |
date | Thu Nov 22 11:10:15 2007 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Re-add "Load Binary" menu item (misplaced in GUI rewrite) Prevent running with no code loaded |
file | annotate | diff | log | raw |
1.1 --- a/src/sh4/sh4core.c Mon Oct 08 12:09:06 2007 +00001.2 +++ b/src/sh4/sh4core.c Thu Nov 22 11:10:15 2007 +00001.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 peripheral1.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 IO1.17 * region, fallback on the full-blown memory read1.18 */
.