]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcp/mips: Change TCG_AREG0 (fp -> s0)
authorStefan Weil <weil@mail.berlios.de>
Fri, 9 Apr 2010 15:28:40 +0000 (17:28 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 13 Apr 2010 23:02:24 +0000 (01:02 +0200)
commitd80e20a1c32bd1bd73cb6e435a01687211e3b3da
tree885a5d02869232c2d77bf40a50ef4802a3372002
parent1ce4fad939d2d54d6e45c109b17dfab6d03f1160
tcp/mips: Change TCG_AREG0 (fp -> s0)

Register fp (frame pointer) is a bad choice for compilations
without optimisation, because the compiler makes heavy use
of this register (so the resulting code crashes).

Register s0 had been used for TCG_AREG1 in earlier releases,
but was no longer used and is now free for TCG_AREG0.

The resulting code works for compilations without
optimisation (tested with qemu mips in qemu mips
on x86 host).

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
dyngen-exec.h
tcg/mips/tcg-target.c
tcg/mips/tcg-target.h