64-bit GCC fixes

This commit is contained in:
R. Belmont 2008-01-12 06:03:09 +00:00
parent 08de08ce3e
commit 61714cd5a7
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ extern unsigned dasmmips3(char *buffer, unsigned pc, UINT32 op);
DEBUGGING
***************************************************************************/
#define LOG_CODE (0)
#define LOG_CODE (1)
#define SINGLE_INSTRUCTION_MODE (0)
#ifdef MAME_DEBUG
@ -188,7 +188,7 @@ static void mips3_init(mips3_flavor flavor, int bigendian, int index, int clock,
allocatedsize = CACHE_SIZE + sizeof(*mips3.core) + memsize;
mips3.core = osd_alloc_executable(allocatedsize);
if (mips3.core == NULL)
fatalerror("Unable to allocate cache of size %d\n", allocatedsize);
fatalerror("Unable to allocate cache of size %d\n", (UINT32)allocatedsize);
mips3.cache = (UINT8 *)(mips3.core + 1) + memsize;
/* initialize the core */

View File

@ -329,7 +329,7 @@ static int kikstart_gear_r(void *param)
{
const char *port_tag;
int player = (int)param;
int player = (int)(FPTR)param;
if (player == 0)
port_tag = "GEARP1";