mirror of https://github.com/bsnes-emu/bsnes.git
v106.181
* SFC: fixed PPU WIP regression with sprites in Donkey Kong Country 2 * libco: fix ELFv2 PowerPC compilation * hiro: fix Cocoa compilation * other: miscellaneous code cleanups
This commit is contained in:
parent
0d35f2277b
commit
5ff2383af7
|
@ -21,7 +21,7 @@ static void (*co_swap)(cothread_t, cothread_t) = 0;
|
||||||
#else
|
#else
|
||||||
section(text)
|
section(text)
|
||||||
#endif
|
#endif
|
||||||
static const uint32_t co_swap_functin[1024] = {
|
static const uint32_t co_swap_function[1024] = {
|
||||||
0xa9002428, /* stp x8,x9,[x1] */
|
0xa9002428, /* stp x8,x9,[x1] */
|
||||||
0xa9012c2a, /* stp x10,x11,[x1,#16] */
|
0xa9012c2a, /* stp x10,x11,[x1,#16] */
|
||||||
0xa902342c, /* stp x12,x13,[x1,#32] */
|
0xa902342c, /* stp x12,x13,[x1,#32] */
|
||||||
|
|
2
libco.c
2
libco.c
|
@ -15,7 +15,7 @@
|
||||||
#include "arm.c"
|
#include "arm.c"
|
||||||
#elif defined(__aarch64__)
|
#elif defined(__aarch64__)
|
||||||
#include "aarch64.c"
|
#include "aarch64.c"
|
||||||
#elif defined(_ARCH_PPC)
|
#elif defined(_ARCH_PPC) && !defined(__LITTLE_ENDIAN__)
|
||||||
#include "ppc.c"
|
#include "ppc.c"
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
#include "fiber.c"
|
#include "fiber.c"
|
||||||
|
|
4
ppc.c
4
ppc.c
|
@ -1,3 +1,5 @@
|
||||||
|
/* ppc64le (ELFv2) is not currently supported */
|
||||||
|
|
||||||
#define LIBCO_C
|
#define LIBCO_C
|
||||||
#include "libco.h"
|
#include "libco.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
@ -36,7 +38,7 @@ static thread_local cothread_t co_active_handle = 0;
|
||||||
|
|
||||||
/* whether function calls are indirect through a descriptor, or are directly to function */
|
/* whether function calls are indirect through a descriptor, or are directly to function */
|
||||||
#ifndef LIBCO_PPCDESC
|
#ifndef LIBCO_PPCDESC
|
||||||
#if !_CALL_SYSV && (_CALL_AIX || _CALL_AIXDESC || LIBCO_PPC64)
|
#if !_CALL_SYSV && (_CALL_AIX || _CALL_AIXDESC || (LIBCO_PPC64 && (!defined(_CALL_ELF) || _CALL_ELF == 1)))
|
||||||
#define LIBCO_PPCDESC 1
|
#define LIBCO_PPCDESC 1
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue