From 9abb3ef9344dfc16a6c8482cccf7642480d4b445 Mon Sep 17 00:00:00 2001 From: David Guillen Fandos Date: Sun, 19 Sep 2021 21:50:38 +0200 Subject: [PATCH] Add printf flush to better capture crashes --- cpu_threaded.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpu_threaded.c b/cpu_threaded.c index 25a2dd2..7d4af8b 100644 --- a/cpu_threaded.c +++ b/cpu_threaded.c @@ -2678,6 +2678,7 @@ u8 function_cc *block_lookup_address_##type(u32 pc) \ if(translation_recursion_level == 0) \ { \ printf("bad jump %x (%x)\n", pc, reg[REG_PC]); \ + fflush(stdout); \ } \ block_address = (u8 *)(-1); \ break; \