mirror of
https://github.com/D-Modem/courier-emu.git
synced 2026-11-28 20:38:07 -08:00
Let a harness drain the C5x PC trace
clear_pc_trace() empties the trace window's buffer, so a harness that reads it after each run slice sees each entry once instead of a rolling 4096. MICA's mica_trace uses it to list who calls a routine through a whole call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
38a68e09e2
commit
be49c69af7
1 file changed
+2
@@ -342,6 +342,8 @@ public:
|
||||
const PortStat &io_port_stat(uint16_t port) const { return m_io_port_stats[port]; }
|
||||
// Each entry: pc << 48 | opcode << 32 | ACC before the instruction.
|
||||
const std::deque<uint64_t> &pc_trace() const { return m_pc_trace; }
|
||||
// Empty it, so a harness draining it between runs sees each entry once.
|
||||
void clear_pc_trace() { m_pc_trace.clear(); }
|
||||
// The trace windows. Two are compiled in for the call overlay and the
|
||||
// low-page stub; a third is settable so a caller can watch a handler
|
||||
// elsewhere - 3.1.2's mailbox tag 0x13 enters ee20, which neither
|
||||
|
||||
Reference in new issue
Block a user