aboutsummaryrefslogtreecommitdiffstats
path: root/tcg/tcg.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2009-10-05 14:06:05 -0700
committerDavid 'Digit' Turner <digit@google.com>2009-10-05 14:06:05 -0700
commitddf49e53df97a349f42c733059165dc73c9907dc (patch)
tree94f840eab7a00cb543b37e1ab9086bc26df5245e /tcg/tcg.h
parentacbee3546b9a380a4eb33daef3dccfac87c56b0b (diff)
downloadexternal_qemu-ddf49e53df97a349f42c733059165dc73c9907dc.zip
external_qemu-ddf49e53df97a349f42c733059165dc73c9907dc.tar.gz
external_qemu-ddf49e53df97a349f42c733059165dc73c9907dc.tar.bz2
Workaround ARMv7 emulation issues.
This patch is used to disable the code generator's liveness analysis pass when we emulate an ARMv7 CPU. This is required to properly run the dex preoptimization pass during the build of -user system images. Also includes: - a fix for a sad typo in target-arm/translate.c related to NEON instruction emulation - upstream improvements to the x86 and x86_64 backends to generate better goto branches at runtime - upstream fixes for 64-bit swap and shift operations in TCG After this patch is applied, re-enabling the ARMv7 memcpy should allow to run the dex preopt pass succesfully. Anything else is untested though. WE STILL NEED TO FIX THE CODE GENERATOR.
Diffstat (limited to 'tcg/tcg.h')
-rw-r--r--tcg/tcg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tcg/tcg.h b/tcg/tcg.h
index ad0bd14..e00f35c 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -471,3 +471,7 @@ extern uint8_t code_gen_prologue[];
#else
#define tcg_qemu_tb_exec(tb_ptr) ((long REGPARM (*)(void *))code_gen_prologue)(tb_ptr)
#endif
+
+/* set to 1 to disable LIVENESS ANALYSIS - temporary work-around for
+ * specific fatal assertion error in ARMv7 -> x86 code translation. */
+extern int tcg_disable_liveness_analysis;