Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games/libretro-mame2000: fix build on powerpc64*
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
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
games/libretro-mame2000/files/patch-src_cpu_tms9900_99xxstat.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |