Mercurial > repos > blastem
changeset 2645:620f30af9fdc
Fix warnings in m68k_util.c
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 28 Feb 2025 23:26:44 -0800 |
parents | c5c9498ff279 |
children | bde8ec2d0f83 |
files | m68k_util.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/m68k_util.c Fri Feb 28 22:40:18 2025 -0800 +++ b/m68k_util.c Fri Feb 28 23:26:44 2025 -0800 @@ -3,7 +3,7 @@ void m68k_read_8(m68k_context *context) { context->cycles += 4 * context->opts->gen.clock_divider; - context->scratch1 = read_byte(context->scratch1, context->mem_pointers, &context->opts->gen, context); + context->scratch1 = read_byte(context->scratch1, (void**)context->mem_pointers, &context->opts->gen, context); } #ifdef DEBUG_DISASM @@ -11,7 +11,7 @@ static uint16_t debug_disasm_fetch(uint32_t address, void *vcontext) { m68k_context *context = vcontext; - return read_word(address, context->mem_pointers, &context->opts->gen, context); + return read_word(address, (void**)context->mem_pointers, &context->opts->gen, context); } #endif void m68k_read_16(m68k_context *context) @@ -20,7 +20,7 @@ #ifdef DEBUG_DISASM uint32_t tmp = context->scratch1; #endif - context->scratch1 = read_word(context->scratch1, context->mem_pointers, &context->opts->gen, context); + context->scratch1 = read_word(context->scratch1, (void**)context->mem_pointers, &context->opts->gen, context); #ifdef DEBUG_DISASM if (tmp == context->pc) { m68kinst inst; @@ -37,13 +37,13 @@ void m68k_write_8(m68k_context *context) { context->cycles += 4 * context->opts->gen.clock_divider; - write_byte(context->scratch2, context->scratch1, context->mem_pointers, &context->opts->gen, context); + write_byte(context->scratch2, context->scratch1, (void**)context->mem_pointers, &context->opts->gen, context); } void m68k_write_16(m68k_context *context) { context->cycles += 4 * context->opts->gen.clock_divider; - write_word(context->scratch2, context->scratch1, context->mem_pointers, &context->opts->gen, context); + write_word(context->scratch2, context->scratch1, (void**)context->mem_pointers, &context->opts->gen, context); } void m68k_sync_cycle(m68k_context *context, uint32_t target_cycle)