Skip to content

Commit 2c0987b

Browse files
bgKzeldin
authored andcommitted
r1 and r2 don't need to be saved and restored by the compiler
This change makes GCC 7.2.0 emit the same code as GCC 4.7.0, and fixes ScummVM crashing after a few seconds.
1 parent 089f0b2 commit 2c0987b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ppu/librsx/commands.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ s32 __attribute__((noinline)) rsxContextCallback(gcmContextData *context,u32 cou
3131
"mr 2,31\n"
3232
"addi 1,1,128\n"
3333
: : "b"(context->callback)
34-
: "r31", "r0", "r1", "r2", "lr"
34+
: "r31", "r0", "lr"
3535
);
3636
return result;
3737
}

0 commit comments

Comments
 (0)