dingusppc/core
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
..
bitops.h platinum: cleanup non-DWORD register reads. 2024-03-12 17:29:19 +01:00
CMakeLists.txt Make Emscripten build not depend on SDL2 or cubeb 2023-10-25 22:25:53 -07:00
coresignal.h Add a deterministic execution mode 2024-11-09 22:48:06 -08:00
hostevents_sdl.cpp Enable HiDPI mode for SDL and ensure that we use nearest-neighbor scaling 2024-11-09 15:48:00 -08:00
hostevents.h Add a deterministic execution mode 2024-11-09 22:48:06 -08:00
mathutils.h Fix compiler warnings: cast loses precision. 2023-01-11 01:17:12 -08:00
timermanager.cpp Attempted build fix 2024-03-16 13:45:28 -07:00
timermanager.h Add a deterministic execution mode 2024-11-09 22:48:06 -08:00