notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
32x drc functional on ARM, random adjustments
[picodrive.git]
/
cpu
/
sh2
/
mame
/
sh2pico.c
diff --git
a/cpu/sh2/mame/sh2pico.c
b/cpu/sh2/mame/sh2pico.c
index
bdab22b
..
57b7d9c
100644
(file)
--- a/
cpu/sh2/mame/sh2pico.c
+++ b/
cpu/sh2/mame/sh2pico.c
@@
-104,8
+104,14
@@
void sh2_execute(SH2 *sh2_, int cycles)
#else // DRC_TMP
#else // DRC_TMP
+#ifdef __i386__
+#define REGPARM(x) __attribute__((regparm(x)))
+#else
+#define REGPARM(x)
+#endif
+
// tmp
// tmp
-void
__attribute__((regparm(2))
) sh2_do_op(SH2 *sh2_, int opcode)
+void
REGPARM(2
) sh2_do_op(SH2 *sh2_, int opcode)
{
sh2 = sh2_;
sh2->pc += 2;
{
sh2 = sh2_;
sh2->pc += 2;