projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02afbf6
)
target-arm/helper.c: Don't allocate TCG resources unless TCG enabled
author
Peter Maydell
<peter.maydell@linaro.org>
Fri, 25 Nov 2011 18:25:50 +0000
(19:25 +0100)
committer
Andrzej Zaborowski
<balrog@zabor.org>
Mon, 5 Dec 2011 20:38:47 +0000
(21:38 +0100)
Don't call arm_translate_init() (which allocates TCG resources)
unless TCG is enabled.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
target-arm/helper.c
patch
|
blob
|
history
diff --git
a/target-arm/helper.c
b/target-arm/helper.c
index 97af4d0bbae87bdadd3ce41c532eb79d92042a1d..3fe5822f617a154c2aff50dbf7d9572aa08545e6 100644
(file)
--- a/
target-arm/helper.c
+++ b/
target-arm/helper.c
@@
-390,7
+390,7
@@
CPUARMState *cpu_arm_init(const char *cpu_model)
return NULL;
env = g_malloc0(sizeof(CPUARMState));
cpu_exec_init(env);
- if (!inited) {
+ if (
tcg_enabled() &&
!inited) {
inited = 1;
arm_translate_init();
}