From 5b5a4db6c2963ba72a3adcace6ec055ac65f2f3d Mon Sep 17 00:00:00 2001 From: David Guillen Fandos Date: Sat, 3 Apr 2021 00:37:42 +0200 Subject: Add instruction tracing, for testing purposes --- cpu_threaded.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpu_threaded.c') diff --git a/cpu_threaded.c b/cpu_threaded.c index e5c027e..a32b1b8 100644 --- a/cpu_threaded.c +++ b/cpu_threaded.c @@ -264,6 +264,7 @@ void translate_icache_sync() { check_pc_region(pc); \ opcode = address32(pc_address_block, (pc & 0x7FFF)); \ condition = block_data[block_data_position].condition; \ + emit_trace_arm_instruction(pc); \ \ if((condition != last_condition) || (condition >= 0x20)) \ { \ @@ -1703,6 +1704,7 @@ void translate_icache_sync() { check_pc_region(pc); \ last_opcode = opcode; \ opcode = address16(pc_address_block, (pc & 0x7FFF)); \ + emit_trace_thumb_instruction(pc); \ \ switch((opcode >> 8) & 0xFF) \ { \ -- cgit v1.2.3