2013-05-21 19:08:29 +02:00
|
|
|
From 4946c30bb4ec03a5f92889e538b5ba6c47b3bdc2 Mon Sep 17 00:00:00 2001
|
2012-05-30 20:19:53 +02:00
|
|
|
From: Alexander Graf <agraf@suse.de>
|
|
|
|
Date: Tue, 29 May 2012 15:30:01 +0200
|
|
|
|
Subject: [PATCH] linux-user: arm: no tb_flush on reset
|
|
|
|
|
|
|
|
When running automoc4 as linux-user guest program, it segfaults right after
|
|
|
|
it creates a thread. Bisecting pointed to commit a84fac1426 which introduces
|
|
|
|
tb_flush on reset.
|
|
|
|
|
|
|
|
So something in our thread creation is broken. But for now, let's revert the
|
|
|
|
change to at least get a working build again.
|
|
|
|
---
|
2013-07-23 00:21:56 +02:00
|
|
|
target-arm/cpu.c | 4 ++++
|
|
|
|
1 files changed, 4 insertions(+), 0 deletions(-)
|
2012-05-30 20:19:53 +02:00
|
|
|
|
|
|
|
diff --git a/target-arm/cpu.c b/target-arm/cpu.c
|
2013-05-14 22:46:08 +02:00
|
|
|
index 496a59f..ad60f82 100644
|
2012-05-30 20:19:53 +02:00
|
|
|
--- a/target-arm/cpu.c
|
|
|
|
+++ b/target-arm/cpu.c
|
2012-08-17 18:42:52 +02:00
|
|
|
@@ -124,7 +124,11 @@ static void arm_cpu_reset(CPUState *s)
|
2012-05-30 20:19:53 +02:00
|
|
|
* bake assumptions about into translated code, so we need to
|
|
|
|
* tb_flush().
|
|
|
|
*/
|
|
|
|
+#if !defined(CONFIG_USER_ONLY)
|
|
|
|
+ /* XXX hack alert! automoc4 segaults after spawning a new thread with this
|
|
|
|
+ flush enabled */
|
|
|
|
tb_flush(env);
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void set_feature(CPUARMState *env, int feature)
|