How libretro/pcsx_rearmed works
PCSX-ReARMed is a PlayStation emulator, exposed through a platform frontend and libretro support. The principal workflow is to launch the emulator with a game image, initialize the emulation core and plugins, execute PlayStation code, and produce video and audio. The README also identifies two dynamic recompilers, BIOS HLE, and platform-specific GPU implementations. Edges reflect excerpts, SOURCE INDEX references, or documented capabilities; unverified integration points are dashed rather than presented as confirmed calls.
Main entry points: misc.h Emulator core · gpu.h GPU plugin interface · main.c Desktop frontend · new_dynarec.c ARM dynamic recompiler
Components 21
Frontend and control
- Desktop frontend
frontend/main.c - Maemo frontend
maemo/main.c - Libretro interface
deps/libretro-common/include/libretro.h
PlayStation emulation
- Emulator core
libpcsxcore/misc.h - MIPS interpreter
libpcsxcore/psxinterpreter.h - ARM dynamic recompiler
libpcsxcore/new_dynarec/new_dynarec.c - ARM code generation
libpcsxcore/new_dynarec/assem_arm.c - ARM64 code generation
libpcsxcore/new_dynarec/assem_arm64.c - Lightrec recompiler
libpcsxcore/lightrec/plugin.c - Lightrec memory manager
deps/lightrec/memmanager.c - BIOS HLE
libpcsxcore/psxhle.h
Graphics and sound
- GPU plugin interface
libpcsxcore/gpu.h - NEON GPU
plugins/gpu_neon/psx_gpu/psx_gpu.c - GLES GPU
plugins/gpu-gles/gpuPrim.c - PCSX4ALL GPU
plugins/gpu_unai/gpu_raster_polygon.h - P.E.Op.S. GPU
plugins/dfxvideo/soft.c - SPU audio plugin
plugins/dfsound/spu.c
Disc and runtime support
- Disc control
libpcsxcore/cdrom.h - CHD reader
deps/libchdr/src/libchdr_chd.c - Game compatibility data
libpcsxcore/database.c
Other components
- Player
Connections 23
- Player → Desktop frontend: launches
frontend/main.c - Player → Maemo frontend: launches
- Desktop frontend → Emulator core: initializes
frontend/main.c - Maemo frontend → Emulator core: initializes
maemo/main.c - Desktop frontend → ARM dynamic recompiler: configures
frontend/main.c - Desktop frontend → Disc control: configures
frontend/main.c - Emulator core → MIPS interpreter: executes via
- Emulator core → ARM dynamic recompiler: executes via
- Emulator core → Lightrec recompiler: executes via
libpcsxcore/lightrec/plugin.c - ARM dynamic recompiler → ARM code generation: emits code with
libpcsxcore/new_dynarec/new_dynarec.c - ARM dynamic recompiler → ARM64 code generation: emits code with
libpcsxcore/new_dynarec/new_dynarec.c - Lightrec recompiler → Lightrec memory manager: tracks allocations
- Emulator core → BIOS HLE: supports
libpcsxcore/psxhle.h - Emulator core → GPU plugin interface: uses plugin interface
- GPU plugin interface → NEON GPU: selects renderer
- GPU plugin interface → GLES GPU: selects renderer
- GPU plugin interface → PCSX4ALL GPU: selects renderer
- GPU plugin interface → P.E.Op.S. GPU: selects renderer
- Emulator core → SPU audio plugin: uses audio plugin
- Emulator core → Disc control: reads disc
- Disc control → CHD reader: reads CHD
- Emulator core → Game compatibility data: applies game hacks
libpcsxcore/database.c - Libretro interface → Emulator core: hosts emulator