Commit a512f03
committed
HLE CD boot: multi-phase sentinel scan + pass Highlander
The HLE CD_read sentinel scan now iterates across every session-2 track
when the scan from the boot-stub-supplied LBA misses, with a single-match
fallback for ASCII-tagged sentinels (CODE/STUB/SCOR/TITL). Many discs
(Highlander, Battle Morph, BrainDead 13) supply MSF values that point to
session-2 lead-in instead of game data; scanning each session-2 track
in order locates the sync block reliably.
Also:
* CD_poll now reports A0 = end+4 (matching the real GPU CD ISR which
pre-decrements before each long write), unblocking cmp+bge polling
idioms used by Highlander.
* Boot stub buffers bumped from 256KB to 600KB to fit Battle Morph's
~414KB stub; both the cdintf raw-sector buffer and the jagcd_hle
injection buffer kept in lockstep.
* New cdintf accessors: CDIntfGetSession2FirstTrackLBA(),
CDIntfGetSession2TrackCount(), CDIntfGetSession2TrackLBA(i).
* Test harness test/test_cd_hle_boot.c discovers all .cue/.iso/.cdi
under VJ_TEST_CD_ROOT (defaults to test/roms/private), runs each
through 300 frames, and asserts PC stays in RAM, escapes self-loops,
and visits more than a handful of unique addresses. Defaults to
cue-only via VJ_TEST_CD_EXTS.
* CHD support removed (libchdr deps deleted, .info dropped chd ext).
* test_hle_bios test cd_poll_a0_advances_past_end_after_read renamed
+ assertion updated to match the end+4 contract.
Current CUE baseline: 4 PASS / 5 FAIL.
PASS: Battle Morph, Dragon's Lair, Highlander, Space Ace.
FAIL: Baldies, BrainDead 13, Hover Strike, Iron Soldier 2, Primal Rage
(all blocked on GPU CD ISR streaming or post-load downstream waits).
Made-with: Cursor1 parent af4e037 commit a512f03
75 files changed
Lines changed: 1196 additions & 60838 deletions
File tree
- deps/libchdr
- .github/workflows
- deps
- lzma-25.01
- Asm
- arm64
- x86
- include
- real
- src
- real
- miniz-3.1.1
- zstd-1.5.7
- include
- dr_libs
- libchdr
- src
- docs
- src
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 27 | | |
32 | | - | |
| 28 | + | |
33 | 29 | | |
34 | 30 | | |
| 31 | + | |
35 | 32 | | |
36 | 33 | | |
37 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
| 91 | + | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
126 | 133 | | |
127 | 134 | | |
128 | 135 | | |
| |||
577 | 584 | | |
578 | 585 | | |
579 | 586 | | |
580 | | - | |
| 587 | + | |
581 | 588 | | |
582 | 589 | | |
583 | 590 | | |
| |||
618 | 625 | | |
619 | 626 | | |
620 | 627 | | |
621 | | - | |
| 628 | + | |
622 | 629 | | |
623 | 630 | | |
624 | 631 | | |
| |||
635 | 642 | | |
636 | 643 | | |
637 | 644 | | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
638 | 648 | | |
639 | 649 | | |
640 | 650 | | |
| |||
653 | 663 | | |
654 | 664 | | |
655 | 665 | | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
656 | 679 | | |
657 | 680 | | |
658 | 681 | | |
659 | | - | |
| 682 | + | |
660 | 683 | | |
661 | 684 | | |
662 | 685 | | |
663 | 686 | | |
664 | | - | |
| |||
This file was deleted.
Lines changed: 0 additions & 45 deletions
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments