Commit Graph
2 Commits
Author SHA1 Message Date
Cryan209andClaude Opus 5.5 949dd74937 Keep the instruction clock across HLT on both counting engines
While the CPU sits in STI/HLT the run loop advances self.instructions and
services the board, but the interpreter's retired count and the native
Unicorn clock only count executed instructions. The next service set the
clock back from them, so every halt rewound the 80186's timers and frame
edges while the DSP kept the time it had been given.

The Quad on the default interpreter halts ~800 times in 12M instructions;
before this its clock went backwards 188 times (35.4M instructions in
total), and now not at all. The native clock gets an advance() for the
same case, though no profile reaches it today: only the 302/403 use the
native clock, and neither halts. The Quad on Unicorn uses the Python block
hook, which already continued from the advanced count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 18:58:50 +12:00
Cryan209 800e5fa098 Improve SIP real-time audio pacing 2026-09-13 08:42:27 +12:00