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.5 static void xlat_promote_to_old_space( xlat_cache_block_t block )
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.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.22 void xlat_promote_to_temp_space( xlat_cache_block_t block )
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.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.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.47 if( xlat_new_cache_ptr->active ) {