aboutsummaryrefslogtreecommitdiff
path: root/target-lm32/helper.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-01-20 00:05:12 +0100
committerAndreas Färber <afaerber@suse.de>2013-02-16 14:50:58 +0100
commit868e2824276cbe6ef2e202c05c4eb3a3a19d3ee0 (patch)
treec256393c53f48f1438a8d49e0219cae6a4594555 /target-lm32/helper.c
parentd1a94fec3d8d70009fd5ac27ade5539fe58cd702 (diff)
downloadqemu-868e2824276cbe6ef2e202c05c4eb3a3a19d3ee0.zip
qemu-868e2824276cbe6ef2e202c05c4eb3a3a19d3ee0.tar.gz
qemu-868e2824276cbe6ef2e202c05c4eb3a3a19d3ee0.tar.bz2
target-lm32: Move TCG initialization to LM32CPU initfn
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-lm32/helper.c')
-rw-r--r--target-lm32/helper.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/target-lm32/helper.c b/target-lm32/helper.c
index a6691ad..47ae7e7 100644
--- a/target-lm32/helper.c
+++ b/target-lm32/helper.c
@@ -197,7 +197,6 @@ LM32CPU *cpu_lm32_init(const char *cpu_model)
LM32CPU *cpu;
CPULM32State *env;
const LM32Def *def;
- static int tcg_initialized;
def = cpu_lm32_find_by_name(cpu_model);
if (!def) {
@@ -212,11 +211,6 @@ LM32CPU *cpu_lm32_init(const char *cpu_model)
env->num_wps = def->num_watchpoints;
env->cfg = cfg_by_def(def);
- if (tcg_enabled() && !tcg_initialized) {
- tcg_initialized = 1;
- lm32_translate_init();
- }
-
object_property_set_bool(OBJECT(cpu), true, "realized", NULL);
return cpu;