mirror of
https://github.com/Creased/RCM-Emulator.git
synced 2026-12-06 02:48:11 +01:00
Model the CPU complex's reset view and per-core clock stop
RST_CPU_CMPLX_SET/CLR (0x340/0x344) and CLK_CPUG_CMPLX_SET/CLR (0x460/0x464) read back the last value written, like plain registers. - RST_CPU_CMPLX_SET has RST_CPUG_CMPLX's fields and reset value (TRM 5.2.113): it is the active cluster's view, and the Switch runs the G cluster. It and its CLR partner now act on the same reset state as the CPUG pair, releasing and stopping CPU0 alike, and read it back. - CLK_CPUG_CMPLX (0x378, TRM 5.2.122) and its SET/CLR strobes track CPUGn_CLK_STP, and all three read the register. A stopped CPU0 keeps its state and executes nothing while emulated time passes; clearing the stop resumes it where it was. The CCPLEX test now releases CPU0 with its clock stopped, checks it does not run and that the registers read back, then clears the stop. Against the previous binary those three checks fail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YYewwDPujjo5B2xRyC5Grb
This commit is contained in:
4 files changed
+63
-2
No files matched your search
@@ -23,6 +23,9 @@ echo "ccplex test (emulator exit $status):"
|
||||
expect 'cannot run: CPU rail off' 'an unpowered release is refused, with the reason'
|
||||
expect 'unpowered: CPU0 stayed dark' 'and the core really did not execute'
|
||||
expect 'CPU0 released: AArch64 EL3, MMU off, entry 0xA0000000' 'a powered release boots CPU0 at the SB vector'
|
||||
expect 'clock stopped: CPU0 held still' 'a core released with its clock stopped does not run'
|
||||
expect 'clock stop reads 00000100 00000100' 'CLK_CPUG_CMPLX and its CLR strobe read back the stop'
|
||||
expect 'RST_CPU_CMPLX matches RST_CPUG_CMPLX' 'the active-cluster reset register reads the G cluster'
|
||||
expect 'powered: magic=50434945' 'CPU0 ran the blob and wrote the mailbox'
|
||||
expect 'el=0000000C' 'CPU0 came up at EL3'
|
||||
expect 'CPU0 stopped (held in reset)' 'RST_CPUG_CMPLX_SET stops the core'
|
||||
|
||||
Reference in new issue
Block a user