# HG changeset patch # User Michael Pavone # Date 1707887927 28800 # Node ID 339eff5dc35084284a59e780dc8ff673b6d6226b # Parent ab577e2ed66a90b296e11f095b703ed942f2d614 Get 68K test harness compiling again diff -r ab577e2ed66a -r 339eff5dc350 trans.c --- a/trans.c Tue Feb 13 21:18:31 2024 -0800 +++ b/trans.c Tue Feb 13 21:18:47 2024 -0800 @@ -23,9 +23,14 @@ { } -#ifndef NEW_CORE +m68k_context *int_ack(m68k_context *context) +{ + return context; +} + m68k_context * sync_components(m68k_context * context, uint32_t address) { +#ifndef NEW_CORE if (context->current_cycle >= context->target_cycle) { puts("hit cycle limit"); exit(0); @@ -34,8 +39,8 @@ context->target_cycle = context->current_cycle; } return context; +#endif } -#endif m68k_context *reset_handler(m68k_context *context) { @@ -82,7 +87,7 @@ memmap[1].flags = MMAP_READ | MMAP_WRITE | MMAP_CODE; memmap[1].buffer = malloc(64 * 1024); memset(memmap[1].buffer, 0, 64 * 1024); - init_m68k_opts(&opts, memmap, 2, 1); + init_m68k_opts(&opts, memmap, 2, 1, sync_components, int_ack); m68k_context * context = init_68k_context(&opts, reset_handler); context->mem_pointers[0] = memmap[0].buffer; context->mem_pointers[1] = memmap[1].buffer;