diff options
author | Richard Henderson | 2017-10-16 04:02:42 +0200 |
---|---|---|
committer | Richard Henderson | 2017-10-24 22:00:13 +0200 |
commit | 55c3ceef61fcf06fc98ddc752b7cce788ce7680b (patch) | |
tree | 39cb3c0c16d33de6491e3dc7fa5a71933463490f /target/alpha/translate.c | |
parent | tcg: Remove TCGV_EQUAL* (diff) | |
download | qemu-55c3ceef61fcf06fc98ddc752b7cce788ce7680b.tar.gz qemu-55c3ceef61fcf06fc98ddc752b7cce788ce7680b.tar.xz qemu-55c3ceef61fcf06fc98ddc752b7cce788ce7680b.zip |
qom: Introduce CPUClass.tcg_initialize
Move target cpu tcg initialization to common code,
called from cpu_exec_realizefn.
Acked-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Emilio G. Cota <cota@braap.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/alpha/translate.c')
-rw-r--r-- | target/alpha/translate.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/target/alpha/translate.c b/target/alpha/translate.c index f32c95b9a1..3c8d1dc333 100644 --- a/target/alpha/translate.c +++ b/target/alpha/translate.c @@ -124,14 +124,8 @@ void alpha_translate_init(void) }; #endif - static bool done_init = 0; int i; - if (done_init) { - return; - } - done_init = 1; - cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env"); tcg_ctx.tcg_env = cpu_env; |