Implementing Debugging Tracing Mechanisms for CPU Simulation
Instruction Execution Tracing To effectively debug a CPU simulator, capturing the flow of instruction execution is fundamental. This mechanism, often referred to as instruction tracing, records the program counter, the raw instruction bytes, and the disassembled mnemonic for every cycle. The core lo...