libretro-flycast: Fix build on NetBSD/arm

This commit is contained in:
nia 2020-06-13 13:02:09 +00:00
parent 492857267c
commit 7449b355d1
2 changed files with 24 additions and 1 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.1 2020/05/31 15:20:22 nia Exp $
$NetBSD: distinfo,v 1.2 2020/06/13 13:02:09 nia Exp $
SHA1 (libretro-flycast-20200529-e595af5dfbff2e49fbcb95bec5b240785c8b4f4f.tar.gz) = b4c6492680fd84a8dc4d7ef025ab648438e305dc
RMD160 (libretro-flycast-20200529-e595af5dfbff2e49fbcb95bec5b240785c8b4f4f.tar.gz) = 5545255f788358f03ab5340436d75a17e28d8523
@ -7,6 +7,7 @@ Size (libretro-flycast-20200529-e595af5dfbff2e49fbcb95bec5b240785c8b4f4f.tar.gz)
SHA1 (patch-Makefile) = 8159fc931d8514bd100ead06c3fe1ae4d11dfac0
SHA1 (patch-Makefile.common) = 4bfdaae74db7672f11698040bbb29d851006c2b3
SHA1 (patch-core_hw_aica_dsp__x64.cpp) = 2ed58220ac214136879bc4aa8939c11b8d6f0916
SHA1 (patch-core_hw_arm7_arm7.cpp) = 796da7a2c67d490c67846ecc09d1e959ca6821fa
SHA1 (patch-core_hw_sh4_dyna_driver.cpp) = 6067ac4c8009759baeffc71049e7987c5441947b
SHA1 (patch-core_libretro_common.cpp) = c3cf6bcfa2e2f9a74459517f8d9e3d0a562cf479
SHA1 (patch-core_log_StringUtil.h) = b0726f1ab856adb27ba672f8a9ca3ef9f369e583

View file

@ -0,0 +1,22 @@
$NetBSD: patch-core_hw_arm7_arm7.cpp,v 1.1 2020/06/13 13:02:09 nia Exp $
Support non-Linux unixes with ELF.
--- core/hw/arm7/arm7.cpp.orig 2020-05-29 12:45:55.000000000 +0000
+++ core/hw/arm7/arm7.cpp
@@ -594,14 +594,10 @@ u8* ICache;
extern const u32 ICacheSize=1024*1024;
#ifdef _WIN32
u8 ARM7_TCB[ICacheSize+4096];
-#elif defined(__linux__) || defined(HAVE_LIBNX)
-
-u8 ARM7_TCB[ICacheSize+4096] __attribute__((section(".text")));
-
#elif defined(__MACH__)
u8 ARM7_TCB[ICacheSize+4096] __attribute__((section("__TEXT, .text")));
#else
-#error ARM7_TCB ALLOC
+u8 ARM7_TCB[ICacheSize+4096] __attribute__((section(".text")));
#endif
#include "rec-ARM/arm_emitter.h"