Search
lxdream.org :: lxdream/src/sh4/sh4mem.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4mem.c
changeset 371:f2fe152cfc9b
prev369:4b4223e7d720
next400:049d72a7a229
author nkeynes
date Wed Sep 12 11:31:16 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Fix load_spreg/store_spreg
Fix PREF
Add jump target debug checking
file annotate diff log raw
1.1 --- a/src/sh4/sh4mem.c Sat Sep 08 03:12:21 2007 +0000
1.2 +++ b/src/sh4/sh4mem.c Wed Sep 12 11:31:16 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4mem.c,v 1.21 2007-09-08 03:11:53 nkeynes Exp $
1.6 + * $Id: sh4mem.c,v 1.22 2007-09-08 04:38:11 nkeynes Exp $
1.7 * sh4mem.c is responsible for the SH4's access to memory (including memory
1.8 * mapped I/O), using the page maps created in mem.c
1.9 *
1.10 @@ -394,7 +394,7 @@
1.11 {
1.12 /* Store queue operation */
1.13 int queue = (addr&0x20)>>2;
1.14 - int32_t *src = &sh4r.store_queue[queue];
1.15 + char *src = (char *)&sh4r.store_queue[queue];
1.16 uint32_t hi = (MMIO_READ( MMU, (queue == 0 ? QACR0 : QACR1) ) & 0x1C) << 24;
1.17 uint32_t target = addr&0x03FFFFE0 | hi;
1.18 mem_copy_to_sh4( target, src, 32 );
.