dingusppc/devices/sound
Mihai Parparita f65f9b9845 Add a deterministic execution mode
Adds support for a --deterministic command-line option that makes
repeated runs the same:
- Keyboard and mouse input is ignored
- The sound server does a periodic pull from the DMA channel (so that
  it gets drained), but only does so via a periodic timer (instead of
  being driven by a cubeb callback, which could arrive at different
  times)
- Disk image writes are disabled (reads of a modified area still
  work via an in-memory copy)
- NVRAM writes are disabled
- The current time that ViaCuda initializes the guest OS is always the
  same.

This makes execution exactly the same each time, which should
make debugging of more subtle issues easier.

To validate that the deterministic mode is working, I've added a
periodic log of the current "time" (measured in cycle count), PC
and opcode. When comparing two runs with --log-no-uptime, the generated
log files are identical.
2024-11-09 22:48:06 -08:00
..
awacs.cpp Add a deterministic execution mode 2024-11-09 22:48:06 -08:00
awacs.h awacs: small cosmetic improvements. 2024-04-07 18:48:52 +02:00
burgundy.cpp Fix Analyzer warnings. 2024-03-24 12:56:11 -07:00
burgundy.h Fix compilation of the audio codec classes. 2023-04-23 21:04:24 +02:00
soundserver_cubeb.cpp Add a deterministic execution mode 2024-11-09 22:48:06 -08:00
soundserver.h Add a deterministic execution mode 2024-11-09 22:48:06 -08:00