The 3DS application CPU is ARM11/ARMv6K with VFP, not the Cortex-A57
ARMv8-A AArch32 default in src/common/cpu/arm/. That backend's existing
user-mode API still uses a single flat mem/mem_size range.
Mapping a sparse 3DS address space into that ABI would make holes accessible and
would bypass process permissions, aliases and device callbacks.
Remaining requirements beyond the initial native bootstrap pipeline:
CPU* or
an NX module to an A32 block.src/3ds/, with only common dependencies. Extract
reusable host FS/tree operations from NX into common rather than linking the
NX kernel/services/Maxwell runtime into CTR. Keep 3DS archive IDs, permissions,
title identity and saves in the CTR adapter. Architecture tests enforce the
runtime boundary.The page controller is now connected through an opt-in SnxArmCheckedCPU
callback ABI, while the original CPU block/state ABI is deliberately unchanged.
The adapter is not linked to the legacy execution runner. The A32 runner in
src/common/cpu/arm/exec.c compiles blocks while a program runs and is not used by this pipeline.
The offline compiler (src/3ds/aot/compiler.c, part of the driver) has its own
ARM11/checked codegen options; shared A57 emission and CPU ABI defaults remain unchanged.
The tick domain remains 268,111,856 Hz, with 4,481,136 base ticks per frame, as in Azahar. The game's code runs natively, so a New 3DS's 804 MHz clock and L2 cache have nothing to change: ptm:sysm's ConfigureNew3DSCPU takes them on a New 3DS (said once), and the tick counter keeps its rate, as on the console. On an Old 3DS, or with a bit it does not know, the command stops. Threads on cores 2 and 3 share the one serialized scheduler with the others. Interrupts are delivered at the scheduler's deadlines (vblank, DSP frames, timers), paced by the host clock rather than by guest cycles. There is no ARM9 emulation or boot ROM. Synthetic CIAs and the supplied SuperTux startup execute natively, not complete games/retail titles.
Made from docs/platforms/3ds/README.md at 69237645142c. GPL-3.0-or-later.