diff options
author | Matt Madison <madison@bliss-m.org> | 2014-09-20 10:11:58 -0700 |
---|---|---|
committer | Matt Madison <madison@bliss-m.org> | 2014-09-20 10:11:58 -0700 |
commit | 3055d8d1792b092bd6e1299027dba6a79df02004 (patch) | |
tree | 36a3132959faab61848a508d67a6aedc432126b5 | |
parent | 10ff5cfd628dda0618038ad23c35fe4155703222 (diff) | |
download | greenlet-3055d8d1792b092bd6e1299027dba6a79df02004.tar.gz |
Simply remove the additional GP register saves for MIPS64, as
they appear to be unnecessary.
-rw-r--r-- | platform/switch_mips_unix.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/platform/switch_mips_unix.h b/platform/switch_mips_unix.h index 10e392b..3aed027 100644 --- a/platform/switch_mips_unix.h +++ b/platform/switch_mips_unix.h @@ -19,15 +19,7 @@ static int slp_switch(void) { register int *stackref, stsizediff; -#if _MIPS_SIM == _ABI64 || _MIPS_SIM == _ABIN32 - void *gpsave; -#endif __asm__ __volatile__ ("" : : : REGS_TO_SAVE); -#if _MIPS_SIM == _ABI64 - __asm__ __volatile__ ("sd $28,%0" : "=m" (gpsave) : : ); -#elif _MIPS_SIM == _ABIN32 - __asm__ __volatile__ ("sw $28,%0" : "=m" (gpsave) : : ); -#endif __asm__ ("move %0, $29" : "=r" (stackref) : ); { SLP_SAVE_STATE(stackref, stsizediff); @@ -42,11 +34,6 @@ slp_switch(void) ); SLP_RESTORE_STATE(); } -#if _MIPS_SIM == _ABI64 - __asm__ __volatile__ ("ld $28,%0" : : "m" (gpsave) : ); -#elif _MIPS_SIM == _ABIN32 - __asm__ __volatile__ ("lw $28,%0" : : "m" (gpsave) : ); -#endif __asm__ __volatile__ ("" : : : REGS_TO_SAVE); return 0; } |