Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-code the saving of the gp register for MIPS64 so it compiles #58

Merged
merged 5 commits into from
Sep 20, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simply remove the additional GP register saves for MIPS64, as
they appear to be unnecessary.
Matt Madison committed Sep 20, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 3055d8d1792b092bd6e1299027dba6a79df02004
13 changes: 0 additions & 13 deletions platform/switch_mips_unix.h
Original file line number Diff line number Diff line change
@@ -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;
}