Skip to contentSkip to conversation

PATCH: allow Sparc hosts to run arm/mips/sparc-softmmu

Qemu-devel Ben Taylor 2 participants 2 messages Mar 13, 2007

lore
Share & tools
lore

Ben Taylor

author
#0 lore raw

This patch fixes crashes when testing with arm-test-0.2.tar.gz and mips-test-0.2.tar.gz. Without the patch, both arm-test and mips-test segfault when trying to boot.

The original patch was authored by Martin Bochnig.

cpu-exec.c renamed from cpu-exec.c.ORIG +3 -0
@@ -738,7 +744,10 @@
 #else
                 gen_func();
 #endif
+/* sparc hosts don't seem to like this method very much */
+#if !(defined(__sparc__) && !defined(TARGET_I386) && !defined(TARGET_X86_64) && !defined(TARGET_PPC))
                 env->current_tb = NULL;
+#endif
                 /* reset soft MMU for next block (it can currently
                    only be set by a memory fault) */
 #if defined(TARGET_I386) && !defined(CONFIG_SOFTMMU)
#1 lore raw
Quoted 3 lines · Ben Taylor

This patch fixes crashes when testing with arm-test-0.2.tar.gz and mips-test-0.2.tar.gz. Without the patch, both arm-test and mips-test segfault when trying to boot.

I don't believe this is correct. You're going to have to come up with a fairly convincing argument to get a patch like this accepted.
"don't seem to like this very much" is not a useful comment.

Paul