Skip to content

Commit

Permalink
games/libretro-mame2000: fix build on powerpc64*
Browse files Browse the repository at this point in the history
src/cpu/tms9900/99xxstat.h:204:14: error: expected identifier or '('
static INT32 asm setst_add_32_laeco(register INT32 a, register INT32 b, register INT16 st)
  • Loading branch information
pkubaj committed Apr 7, 2021
1 parent fd6ed70 commit 8f84063
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion games/libretro-mame2000/Makefile
Expand Up @@ -7,7 +7,8 @@ COMMENT= MAME (0.37b5) for libretro

LICENSE= GPLv2

USES= compiler:c++11-lib gmake
USES= compiler:c++11-lib dos2unix gmake
DOS2UNIX_FILES= src/cpu/tms9900/99xxstat.h
USE_LDCONFIG= yes

USE_GITHUB= yes
Expand Down
11 changes: 11 additions & 0 deletions games/libretro-mame2000/files/patch-src_cpu_tms9900_99xxstat.h
@@ -0,0 +1,11 @@
--- src/cpu/tms9900/99xxstat.h.orig 2021-04-07 16:22:44 UTC
+++ src/cpu/tms9900/99xxstat.h
@@ -192,7 +192,7 @@ static INLINE void setst_c_lae(UINT16 to, UINT16 val)
#define wadd(addr,expr) { int lval = setst_add_laeco(readword(addr), (expr)); writeword((addr),lval); }
#define wsub(addr,expr) { int lval = setst_sub_laeco(readword(addr), (expr)); writeword((addr),lval); }

-#ifdef __POWERPC__
+#if defined(__POWERPC__) && !defined(__powerpc64__)

// setst_add_32_laeco :
// - computes a+b

0 comments on commit 8f84063

Please sign in to comment.