X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fsh2%2Fmame%2Fsh2pico.c;h=57b7d9c5462c87e90a85d75f272dc9eb8b9db244;hb=553c3eaa3a4bda6ba99d925ecab518fe82530cd6;hp=bdab22b2bf3d32c5e26dba1e4eb1632c2c8627ed;hpb=274f95a9a9e5a889ee137a7cbd764a384a7ac2dd;p=picodrive.git diff --git a/cpu/sh2/mame/sh2pico.c b/cpu/sh2/mame/sh2pico.c index bdab22b..57b7d9c 100644 --- 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 +#ifdef __i386__ +#define REGPARM(x) __attribute__((regparm(x))) +#else +#define REGPARM(x) +#endif + // 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;