changeset 2354:a773b8f09292

Remove old refresh hack that is causing VDPFifoTesting to have a failed test
author Michael Pavone <pavone@retrodev.com>
date Thu, 19 Oct 2023 23:27:57 -0700
parents c66e051de8a6
children 94cf5cc89227
files genesis.c
diffstat 1 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/genesis.c	Wed Oct 18 23:27:55 2023 -0700
+++ b/genesis.c	Thu Oct 19 23:27:57 2023 -0700
@@ -674,7 +674,7 @@
 	//printf("acknowledging %d @ %d:%d, vcounter: %d, hslot: %d\n", context->int_ack, context->current_cycle, v_context->cycles, v_context->vcounter, v_context->hslot);
 	vdp_run_context(v_context, context->current_cycle);
 	vdp_int_ack(v_context);
-	
+
 	//the Genesis responds to these exclusively with !VPA which means its a slow
 	//6800 operation. documentation says these can take between 10 and 19 cycles.
 	//actual results measurements seem to suggest it's actually between 9 and 18
@@ -683,7 +683,7 @@
 	//additional variable delay from the use of the 6800 cycle
 	uint32_t cycle_count = context->current_cycle / context->options->gen.clock_divider;
 	context->current_cycle += 5 + (cycle_count % 10);
-	
+
 	return context;
 }
 
@@ -781,12 +781,7 @@
 
 	//refresh may have happened while we were waiting on the VDP,
 	//so advance refresh_counter but don't add any delays
-	if (vdp_port >= 4 && vdp_port < 8 && v_context->cycles != before_cycle) {
-		gen->refresh_counter = 0;
-		gen->last_sync_cycle = context->current_cycle;
-	} else {
-		gen_update_refresh_no_wait(context);
-	}
+	gen_update_refresh_no_wait(context);
 	return context;
 }