diff options
author | David Guillen Fandos | 2021-04-03 00:37:42 +0200 |
---|---|---|
committer | David Guillen Fandos | 2021-04-03 00:37:42 +0200 |
commit | 5b5a4db6c2963ba72a3adcace6ec055ac65f2f3d (patch) | |
tree | db7cd4db7d0c146a382e997f9f704a1983446e28 /cpu_threaded.c | |
parent | 8c14ac96192f6d966ac0ad252003a8dd3c61667a (diff) | |
download | picogpsp-5b5a4db6c2963ba72a3adcace6ec055ac65f2f3d.tar.gz picogpsp-5b5a4db6c2963ba72a3adcace6ec055ac65f2f3d.tar.bz2 picogpsp-5b5a4db6c2963ba72a3adcace6ec055ac65f2f3d.zip |
Add instruction tracing, for testing purposes
Diffstat (limited to 'cpu_threaded.c')
-rw-r--r-- | cpu_threaded.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) \ { \ |