Source provenance and licensing

The initial shallow checkouts were:

Stage 1 uses physical-layout facts from Azahar src/core/memory.h, the tick constants from src/core/core_timing.h, and the system-initialization design in src/core/core.cpp. Stage 2a references src/core/file_sys/{cia_container, title_metadata,ticket,signature,ncch_container}.*, src/core/loader/ncch.cpp and src/core/hle/romfs.cpp. The bounded BLZ implementation credits the Citra/Azahar algorithm; the extractor and page controller are new C code. The z3ds support (src/3ds/loader/z3ds.c) reads Azahar's Z3DSWriteIOFile and Z3DSReadIOFile (common/file_derived.{h,cpp}, GPL-3.0-or-later) for the container's header and its zstd seekable stream, whose frames a streaming decompressor takes in order and whose seek-table footer is the skippable frame it skips; the unpacker is new C code over zstd's own streaming API. The bundle support (src/3ds/loader/tar.c) reads Azahar's TarArchive (common/tar_file.cpp, GPL-3.0-or-later) for what a bundle is taken to be: a ustar archive, the game its first entry named as a game's, hidden and non-file entries skipped, and duplicate names refused; the reader is new C code over the POSIX header layout. The cartridge-image support (src/3ds/loader/ncsd.c, the container dispatch, the update overlay) reads ncch_container.cpp's AutoOpenNCCHNCSD, LoadHeader and is_proto, and loader/ncch.cpp's OpenUpdateNCCH, UPDATE_TID_HIGH and overlay_ncch at revision 68202bc4ff7edf9d7280ec0dcd6572b7cd1ae26e (GPL-3.0-or-later) for the NCSD partition layout and the base/update semantics; the C implementation is new, as the CIA one is. Initial 2b CPU/profile and bus code is new project C code using ARMv6K/legacy Thumb architectural semantics; it does not copy an Azahar CPU engine. The shared emitter retains its existing notices. Unicorn 2.1.4's ARM11 MPCore model is a test reference, not a runtime engine. Stage 2b2 process mappings/BSS policy refer to Azahar src/core/loader/ncch.cpp and kernel process layout at the same revision; the new image/module/compiler/ dispatch implementation is project C code, not an adapted Azahar CPU engine. The software keyboard, the Mii selector and APT's parameter and library applet commands port hle/applets/{swkbd,mii_selector}.{cpp,h}, hle/mii.{cpp,h}, frontend/applets/{swkbd,mii_selector}.cpp and hle/service/apt/{apt,applet_manager}.cpp at Azahar ac4a97e27723a501fbd79db75e94a5a8b3cbb8b1 (GPL-2.0-or-later): the configurations' and the Mii selector's result's layouts, the result codes, the Request, Message and Finalize steps, the default keyboard's answer with the user name and its checks, the Mii's checksum; the C implementation is new. The Mii's fields are laid out as 3dbrew's Mii page gives them. The preload and the applet info read hle/service/apt/{apt,applet_manager}.cpp again at Azahar 11eceda5e0e682a1f44e396bf954a1b9137097ca (GPL-2.0-or-later): the applet a preload registers as it finishes loading, and the seven words of a slot's information. Stage 2b4 references GPL-2.0-or-later kernel svc.cpp, errors.h, handle_table.cpp, address_arbiter.cpp, config_mem.*, memory.cpp and process.cpp at the same revision for SVC register/result semantics, object lifetimes, configuration offsets and memory-region facts. The new C object, allocator and reservation implementation does not import an Azahar CPU engine. Stage 5's transfer engine and GX queue port Azahar at a4b335e (the revision current on 2026-10-16): video_core/renderer_software/sw_blitter.cpp, video_core/pica/regs_external.h, video_core/utils.h and common/color.h (GPL-2.0-or-later), and the command semantics of video_core/gpu.cpp and core/hle/service/gsp/gsp_gpu.cpp (GPL-3.0-or-later); the special mappings follow core/hle/kernel/{process,memory}.cpp (GPL-2.0-or-later). The command processor ports video_core/pica/pica_core.cpp, shader_setup.cpp, packed_attribute.h, pica_types.h and the register layouts of regs_*.h (GPL-2.0-or-later) at the same revision. The software pipeline ports video_core/shader/shader_interpreter.cpp, video_core/pica/{shader_unit,vertex_loader,primitive_assembly,output_vertex,geometry_pipeline}.cpp, video_core/renderer_software/{sw_rasterizer,sw_clipper,sw_texturing,sw_framebuffer,sw_lighting}.cpp and video_core/texture/{texture_decode,etc1}.cpp (GPL-2.0-or-later), with the shader instruction encoding of nihstro's shader_bytecode.h (BSD-3-Clause, notice kept in gpu/shader.c). Stage 4's HLE DSP ports Azahar at a4b335e: audio_core/hle/{hle,source,mixers,filter,effects}.cpp, the layouts of audio_core/hle/shared_memory.h, audio_core/{codec,interpolate}.cpp, and core/hle/service/dsp/dsp_dsp.cpp, with the sound output mode block of core/hle/service/cfg/{cfg,cfg_defaults}.cpp (GPL-2.0-or-later). The wire forms are checked against libctru's services/dsp.c and services/cfgu.c. Stage 3a references GPL-2.0-or-later core/hle/ipc.h, kernel/hle_ipc.cpp, kernel/svc.cpp, service/sm/{srv.cpp,sm.h} and service/fs/fs_user.cpp at that revision for wire/result/initialization facts. Its new C transport/services and separate SwIPC emitter are project code; see CTR IPC. The parity roadmap's F1 and its audit read Azahar at 987f18405073960622e1043bb44005989135c6e1 (master on 2026-10-17) for kernel and service semantics, without porting code: core/hle/kernel/{svc,thread,timer,mutex,semaphore,address_arbiter,resource_limit,shared_memory,shared_page,process,vm_manager}.cpp and errors.h (GPL-2.0-or-later, except svc.cpp, which is GPL-3.0-or-later at that revision), service/service.cpp's ReportUnimplementedFunction and service/gsp/gsp_gpu.cpp (GPL-3.0-or-later) for the GPU right and the register writes. SVC register layouts and IPC descriptor forms are checked against libctru's source/svc.s, include/3ds/ipc.h and source/services/gspgpu.c (zlib). Azahar is not a build dependency. Azahar's root license is GPLv3; individual files carry GPLv2-or-later or GPLv3-or-later notices. Future adaptations must retain each source's notices and record its origin/revision here; select the GPLv3-compatible terms where applicable. Audit third-party/external components separately rather than assuming that every dependency has the root license.


Made from docs/platforms/3ds/README.md at 69237645142c. GPL-3.0-or-later.