mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
better workaround for ios
This commit is contained in:
parent
9aee8770d2
commit
faf543cebe
2 changed files with 10 additions and 6 deletions
|
@ -128,9 +128,3 @@ PLATFORM = libretro
|
||||||
NO_CONFIG_MAK = yes
|
NO_CONFIG_MAK = yes
|
||||||
|
|
||||||
include Makefile
|
include Makefile
|
||||||
|
|
||||||
# workaround another breakage on;
|
|
||||||
# Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
|
|
||||||
ifeq ($(platform), ios)
|
|
||||||
pico/memory.o: CFLAGS += -O0
|
|
||||||
endif
|
|
||||||
|
|
|
@ -23,6 +23,11 @@ uptr m68k_write16_map[0x1000000 >> M68K_MEM_SHIFT];
|
||||||
static void xmap_set(uptr *map, int shift, int start_addr, int end_addr,
|
static void xmap_set(uptr *map, int shift, int start_addr, int end_addr,
|
||||||
const void *func_or_mh, int is_func)
|
const void *func_or_mh, int is_func)
|
||||||
{
|
{
|
||||||
|
#ifdef __clang__
|
||||||
|
// workaround bug (segfault) in
|
||||||
|
// Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
|
||||||
|
volatile
|
||||||
|
#endif
|
||||||
uptr addr = (uptr)func_or_mh;
|
uptr addr = (uptr)func_or_mh;
|
||||||
int mask = (1 << shift) - 1;
|
int mask = (1 << shift) - 1;
|
||||||
int i;
|
int i;
|
||||||
|
@ -110,6 +115,11 @@ static void m68k_unmapped_write16(u32 a, u32 d)
|
||||||
|
|
||||||
void m68k_map_unmap(int start_addr, int end_addr)
|
void m68k_map_unmap(int start_addr, int end_addr)
|
||||||
{
|
{
|
||||||
|
#ifdef __clang__
|
||||||
|
// workaround bug (segfault) in
|
||||||
|
// Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
|
||||||
|
volatile
|
||||||
|
#endif
|
||||||
uptr addr;
|
uptr addr;
|
||||||
int shift = M68K_MEM_SHIFT;
|
int shift = M68K_MEM_SHIFT;
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue