aboutsummaryrefslogtreecommitdiff
path: root/dyngen-exec.h
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2010-04-09 17:28:40 +0200
committerAurelien Jarno <aurelien@aurel32.net>2010-04-14 00:59:42 +0200
commit60bf84cf4ce277e1212929f35674796888a681ce (patch)
tree6aa17fddc5924a5124f3f9dbc57e10910d306abf /dyngen-exec.h
parentf038e8f79bcda25bc30daacf3906d998c12b34f4 (diff)
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>
Diffstat (limited to 'dyngen-exec.h')
-rw-r--r--dyngen-exec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dyngen-exec.h b/dyngen-exec.h
index d04eda8a91..0700a2d9bb 100644
--- a/dyngen-exec.h
+++ b/dyngen-exec.h
@@ -59,7 +59,7 @@ extern int printf(const char *, ...);
#elif defined(__hppa__)
#define AREG0 "r17"
#elif defined(__mips__)
-#define AREG0 "fp"
+#define AREG0 "s0"
#elif defined(__sparc__)
#ifdef CONFIG_SOLARIS
#define AREG0 "g2"