projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17644b3
)
linux-user: fix broken cpu_copy()
author
Leon Alrae
<leon.alrae@imgtec.com>
Mon, 23 Mar 2015 12:55:52 +0000
(12:55 +0000)
committer
Riku Voipio
<riku.voipio@linaro.org>
Mon, 23 Mar 2015 13:26:42 +0000
(15:26 +0200)
New threads always point at the same env which is incorrect and usually
leads to a crash.
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/main.c
patch
|
blob
|
history
diff --git
a/linux-user/main.c
b/linux-user/main.c
index 31eb60f62b603e43f2350ab8d90d288ee986c6cf..a8adb0404b185176f8e468610738b090d0770630 100644
(file)
--- a/
linux-user/main.c
+++ b/
linux-user/main.c
@@
-3451,7
+3451,7
@@
CPUArchState *cpu_copy(CPUArchState *env)
{
CPUState *cpu = ENV_GET_CPU(env);
CPUState *new_cpu = cpu_init(cpu_model);
- CPUArchState *new_env = cpu->env_ptr;
+ CPUArchState *new_env =
new_
cpu->env_ptr;
CPUBreakpoint *bp;
CPUWatchpoint *wp;