Search
lxdream.org :: lxdream/src/sh4/xltcache.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/xltcache.c
changeset 788:eb238a77f3c0
prev736:a02d1475ccfd
next809:8bdbf4d95da4
author nkeynes
date Wed Jul 30 03:00:40 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Add debian changelog file
file annotate diff log raw
1.1 --- a/src/sh4/xltcache.c Mon Jul 14 07:44:42 2008 +0000
1.2 +++ b/src/sh4/xltcache.c Wed Jul 30 03:00:40 2008 +0000
1.3 @@ -300,7 +300,7 @@
1.4 */
1.5 static void xlat_promote_to_old_space( xlat_cache_block_t block )
1.6 {
1.7 - int allocation = -sizeof(struct xlat_cache_block);
1.8 + int allocation = (int)-sizeof(struct xlat_cache_block);
1.9 int size = block->size;
1.10 xlat_cache_block_t curr = xlat_old_cache_ptr;
1.11 xlat_cache_block_t start_block = curr;
1.12 @@ -316,7 +316,7 @@
1.13 */
1.14 start_block->active = 0;
1.15 start_block->size = allocation;
1.16 - allocation = -sizeof(struct xlat_cache_block);
1.17 + allocation = (int)-sizeof(struct xlat_cache_block);
1.18 start_block = curr = xlat_old_cache;
1.19 }
1.20 } while(1);
1.21 @@ -340,7 +340,7 @@
1.22 void xlat_promote_to_temp_space( xlat_cache_block_t block )
1.23 {
1.24 int size = block->size;
1.25 - int allocation = -sizeof(struct xlat_cache_block);
1.26 + int allocation = (int)-sizeof(struct xlat_cache_block);
1.27 xlat_cache_block_t curr = xlat_temp_cache_ptr;
1.28 xlat_cache_block_t start_block = curr;
1.29 do {
1.30 @@ -361,7 +361,7 @@
1.31 */
1.32 start_block->active = 0;
1.33 start_block->size = allocation;
1.34 - allocation = -sizeof(struct xlat_cache_block);
1.35 + allocation = (int)-sizeof(struct xlat_cache_block);
1.36 start_block = curr = xlat_temp_cache;
1.37 }
1.38 } while(1);
1.39 @@ -426,7 +426,7 @@
1.40 int oldsize = xlat_new_create_ptr->size;
1.41 int size = oldsize + MIN_BLOCK_SIZE; /* minimum expansion */
1.42 void **lut_entry = xlat_new_create_ptr->lut_entry;
1.43 - int allocation = -sizeof(struct xlat_cache_block);
1.44 + int allocation = (int)-sizeof(struct xlat_cache_block);
1.45 xlat_new_cache_ptr = xlat_new_cache;
1.46 do {
1.47 if( xlat_new_cache_ptr->active ) {
.