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
- tests/ccplex: a self-contained BPMP payload (ARM, arm-none-eabi-gcc; the
AArch64 side is pre-assembled words) that drives CPU0 through bdk's
ccplex_boot_cpu0() register sequence. It checks that an unpowered
release is refused with its reason, that a powered one runs at EL3 from
the SB vector and writes the mailbox, that CPU0 sees TIMERUS move, that
WFE parks the core, and that RST_CPUG_CMPLX_SET stops it. `make test`.
- tests/hwtest: build hwtest-rcm from a pinned commit with distro
toolchains (an empty base_rules stands in for devkitARM, the CPU0 stub
builds with gcc-aarch64-linux-gnu) and run its whole sweep headless,
checking the CPU0-driven Wi-Fi probe enumerates the CYW4356.
- CI runs both in the Linux job and keeps their logs on failure.
- Makefile: `test` target; the clean rule's line continuation was a
literal "\n" that only worked by accident.
- README/DESIGN: CCPLEX CPU0, the uc_mmio_map bus, the block-level clock
and TIMERUS poll pacing, the new bug-history entries.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YYewwDPujjo5B2xRyC5Grb