head 1.3; access; symbols pkgsrc-2026Q1:1.3.0.4 pkgsrc-2026Q1-base:1.3 pkgsrc-2025Q4:1.3.0.2 pkgsrc-2025Q4-base:1.3 pkgsrc-2023Q3:1.1.0.2 pkgsrc-2023Q3-base:1.1; locks; strict; comment @// @; 1.3 date 2025.12.17.23.06.27; author nia; state Exp; branches; next 1.2; commitid nQBjn0Ogv4cIGOmG; 1.2 date 2023.11.17.09.27.51; author nia; state dead; branches; next 1.1; commitid LmbVkI5Udi3rCWME; 1.1 date 2023.07.02.17.32.30; author nia; state Exp; branches; next ; commitid kcN2rmCGSX0GJfvE; desc @@ 1.3 log @flycast: Add support for NetBSD/i386. @ text @$NetBSD$ Add support for NetBSD/i386. --- core/linux/context.cpp.orig 2025-12-17 22:59:41.174130803 +0000 +++ core/linux/context.cpp @@@@ -83,6 +83,11 @@@@ static void context_segfault(host_context_t* hostctx, bicopy(hostctx->esp, MCTX(.mc_esp)); bicopy(hostctx->eax, MCTX(.mc_eax)); bicopy(hostctx->ecx, MCTX(.mc_ecx)); + #elif defined(__NetBSD__) + bicopy(hostctx->pc, MCTX(.__gregs[_REG_EIP])); + bicopy(hostctx->esp, MCTX(.__gregs[_REG_ESP])); + bicopy(hostctx->eax, MCTX(.__gregs[_REG_EAX])); + bicopy(hostctx->ecx, MCTX(.__gregs[_REG_ECX])); #elif defined(__unix__) bicopy(hostctx->pc, MCTX(.gregs[REG_EIP])); bicopy(hostctx->esp, MCTX(.gregs[REG_ESP])); @ 1.2 log @[libretro-]flycast: Update to 2.2 What's New * Naomi F355 multiboard * Sega SystemSP emulation * Virtua Fighter 4 RFID card support. VF.Net emulation server * Naomi touchscreen (Manic Panic Ghosts, Touch de Uno 1 & 2, Touch de zunou) * Hopper for Kick'4'Cash, Shootout Pool and Club Kart Prize * F355 Deluxe and Touch de Uno 1 & 2 printer * Sega Driving Simulator * Android Scoped Storage * SH4 under/overclock option * Mushiking series * Naomi Alien Front worldwide ranking server * NetDIMM 3.7 networking high-level emulation * Racing Controller, Fishing Controller, Maracas, Densha de Go controller, Pop'n'Music Controller (@@AltoRetrato) * Real time Video Routing for streamers (@@vkedwardli) * SystemSP RFID chip emulation: Dinosaur King, Love & Berry * Dreamcast 32 MB RAM option (@@cepawiel) What's Improved * Support for Windows CE games on 32-bit x86 arch * Hotkeys for Save and Load State * Force feedback info netcast to Boomlangnz's FFB plugin: F355, 18 Wheeler, Club Kart, King of Route 66 * Use a gamepad with arcade lightgun games * Per-game VMU A1 option * Improved detection of Windows CE games * Latin-1 and Asian fonts support in HLE BIOS * Video centering support (San Francisco Rush 2049, Street Fighter III - 3rd strike, Metropolis Street Racer) * Daytona USA networking * Eldorado Gate 4 to 7 compatibility * Implement dithering in Full Framebuffer Emulation mode * Upgrade dependencies, build improvements, and more thanks to @@scribam * And many, many, many bug fixes thanks to @@kihato and all bug reporters @ text @d1 1 a1 1 $NetBSD: patch-core_linux_context.cpp,v 1.1 2023/07/02 17:32:30 nia Exp $ d3 1 a3 1 Fix build on NetBSD/amd64. d5 1 a5 1 --- core/linux/context.cpp.orig 2023-02-15 17:59:44.000000000 +0000 d7 9 a15 10 @@@@ -84,9 +84,9 @@@@ static void context_segfault(host_contex bicopy(hostctx->pc, MCTX(.mc_rip)); #elif defined(__NetBSD__) bicopy(hostctx->pc, MCTX(.__gregs[_REG_RIP])); - bicopy(hostctx->rsp, MCTX(.__gregs[REG_RSP])); - bicopy(hostctx->r9, MCTX(.__gregs[REG_R9])); - bicopy(hostctx->rdi, MCTX(.__gregs[REG_RDI])); + bicopy(hostctx->rsp, MCTX(.__gregs[_REG_RSP])); + bicopy(hostctx->r9, MCTX(.__gregs[_REG_R9])); + bicopy(hostctx->rdi, MCTX(.__gregs[_REG_RDI])); d17 2 a18 2 bicopy(hostctx->pc, MCTX(.gregs[REG_RIP])); bicopy(hostctx->rsp, MCTX(.gregs[REG_RSP])); @ 1.1 log @Import emulators/flycast. Rejig libretro-flycast package around it. Flycast is a multi-platform Sega Dreamcast, Naomi, Naomi 2, and Atomiswave emulator derived from reicast. @ text @d1 1 a1 1 $NetBSD$ @