Search
lxdream.org :: lxdream/src/sh4/sh4mem.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4mem.c
changeset 369:4b4223e7d720
prev355:18bd008f700a
next371:f2fe152cfc9b
author nkeynes
date Sat Sep 08 03:12:21 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Move the store queue operation to a function in sh4mem.c
file annotate diff log raw
1.1 --- a/src/sh4/sh4mem.c Sun Feb 11 10:17:03 2007 +0000
1.2 +++ b/src/sh4/sh4mem.c Sat Sep 08 03:12:21 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4mem.c,v 1.20 2007-02-11 10:17:03 nkeynes Exp $
1.6 + * $Id: sh4mem.c,v 1.21 2007-09-08 03:11:53 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 @@ -389,3 +389,13 @@
1.11 memcpy( dest, src, count );
1.12 }
1.13 }
1.14 +
1.15 +void sh4_flush_store_queue( uint32_t addr )
1.16 +{
1.17 + /* Store queue operation */
1.18 + int queue = (addr&0x20)>>2;
1.19 + int32_t *src = &sh4r.store_queue[queue];
1.20 + uint32_t hi = (MMIO_READ( MMU, (queue == 0 ? QACR0 : QACR1) ) & 0x1C) << 24;
1.21 + uint32_t target = addr&0x03FFFFE0 | hi;
1.22 + mem_copy_to_sh4( target, src, 32 );
1.23 +}
.