Search
lxdream.org :: lxdream/src/sh4/xltcache.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/xltcache.c
changeset 428:338966c8aed0
prev422:61a0598e07ff
next488:d19a63e47cd9
author nkeynes
date Mon Oct 08 12:09:06 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
1.1 --- a/src/sh4/xltcache.c Sat Oct 06 09:03:24 2007 +0000
1.2 +++ b/src/sh4/xltcache.c Mon Oct 08 12:09:06 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: xltcache.c,v 1.8 2007-10-06 09:03:24 nkeynes Exp $
1.6 + * $Id: xltcache.c,v 1.9 2007-10-07 06:27:12 nkeynes Exp $
1.7 *
1.8 * Translation cache management. This part is architecture independent.
1.9 *
1.10 @@ -16,11 +16,13 @@
1.11 * GNU General Public License for more details.
1.12 */
1.13
1.14 -#include "sh4/xltcache.h"
1.15 -#include "dreamcast.h"
1.16 #include <sys/mman.h>
1.17 #include <assert.h>
1.18
1.19 +#include "dreamcast.h"
1.20 +#include "sh4/xltcache.h"
1.21 +#include "x86dasm/x86dasm.h"
1.22 +
1.23 #define XLAT_LUT_PAGE_BITS 12
1.24 #define XLAT_LUT_TOTAL_BITS 28
1.25 #define XLAT_LUT_PAGE(addr) (((addr)>>13) & 0xFFFF)
1.26 @@ -371,7 +373,7 @@
1.27 if( xlat_new_cache_ptr->size == 0 ) {
1.28 /* Migrate to the front of the cache to keep it contiguous */
1.29 xlat_new_create_ptr->active = 0;
1.30 - char *olddata = xlat_new_create_ptr->code;
1.31 + unsigned char *olddata = xlat_new_create_ptr->code;
1.32 int oldsize = xlat_new_create_ptr->size;
1.33 int size = oldsize + MIN_BLOCK_SIZE; /* minimum expansion */
1.34 void **lut_entry = xlat_new_create_ptr->lut_entry;
.