filename | src/sh4/xltcache.c |
changeset | 428:338966c8aed0 |
prev | 422:61a0598e07ff |
next | 488:d19a63e47cd9 |
author | nkeynes |
date | Sun Oct 28 07:23:46 2007 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Fix CDI with multiple tracks/session Fix file being closed too early |
file | annotate | diff | log | raw |
1.1 --- a/src/sh4/xltcache.c Sat Oct 06 09:03:24 2007 +00001.2 +++ b/src/sh4/xltcache.c Sun Oct 28 07:23:46 2007 +00001.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.14 -#include "sh4/xltcache.h"1.15 -#include "dreamcast.h"1.16 #include <sys/mman.h>1.17 #include <assert.h>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 121.24 #define XLAT_LUT_TOTAL_BITS 281.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;
.