mirror of
https://github.com/jscrane/r65emu.git
synced 2026-11-25 20:29:06 +00:00
* add select() and path()
* fix misplaced #endif
* fix build
* splitting up flash_filer.{cpp,h}; add checkpoint_device.{cpp,h}
* checkpoint / restore bugfix
m68k tests
A test harness to run SingleStepTests against
the m68k implementation.
make
./sstests ~/src/680x0/68000/v1/NOP.json.gz
- the
-kflag may be added: "keep going after failure" - by default the low byte of the
SSWis undefined so failures involving it are "false positives" and ignored by default, unless the-aflag is given - the
-tflag may be added to check "length" vs the number of cycles taken - the
jsontest specification file can be uncompressed: this is useful during development
Here is a Reddit thread discussing that testsuite.
Tests which cover some omissions in the SingleStepTests corpus can be found in sst-extras.
Regression Testing
./regression-tests [-k] [-w] [-t] [-d ~/src/680x0/68000/v1] [some-tests]
- if
some-testsis present, runs them and compares their output against previously-passing output - otherwise runs all tests discovered in the directory
~/src/680x0/68000/v1/ -k: keep going on failure; default is fail fast-d: specify where the tests can be found; default is~/src/680x0/68000/v1-w: write new results and print a summary of lines changed vsgit-t: check cycle times, as above
A simple m68k machine
It is also possible to write m68k assembly programs, compile, load and run them:
make asm-runner simple.rom
./asm-runner simple.rom
Current Failures
See issues.
Testsuite Bugs
ASL.b:1582and1760. (See this issue.)
Timing Errors
DIVU: picks the testsuite median value for cycles when the divisor exceeds0x7fff; the alternative would be an expensive loop in the happy-path:
./sstests -t -k ~/src/680x0/68000/v1/DIVU.json.gz
...
FAIL [8064] 80e8 [DIVU (d16, A0), D0] 8065
cycles expected 130 (0x82) got 120 (0x78)
6356 passed, 1709 failed