diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2017-10-26 15:58:14 +0200 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-10-26 17:47:36 +0100 |
commit | 74d7fc7f6385158b8a5c524c61baaef1b66f3dac (patch) | |
tree | b103a5e976e50881bdb0a73eb4a09d754e1506bb /target/mips | |
parent | 325a084c1ebccb265a3c8f1dd092ffbbfb448a00 (diff) | |
download | qemu-74d7fc7f6385158b8a5c524c61baaef1b66f3dac.zip qemu-74d7fc7f6385158b8a5c524c61baaef1b66f3dac.tar.gz qemu-74d7fc7f6385158b8a5c524c61baaef1b66f3dac.tar.bz2 |
tcg: Avoid setting tcg_initialize if !CONFIG_TCG
Fix the build for --disable-tcg.
Fixes: 55c3ceef61fcf06fc98ddc752b7cce788ce7680b
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-id: 20171026135814.20773-1-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/mips')
-rw-r--r-- | target/mips/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/mips/cpu.c b/target/mips/cpu.c index 0ae7028..80812f3 100644 --- a/target/mips/cpu.c +++ b/target/mips/cpu.c @@ -198,7 +198,9 @@ static void mips_cpu_class_init(ObjectClass *c, void *data) cc->vmsd = &vmstate_mips_cpu; #endif cc->disas_set_info = mips_cpu_disas_set_info; +#ifdef CONFIG_TCG cc->tcg_initialize = mips_tcg_init; +#endif cc->gdb_num_core_regs = 73; cc->gdb_stop_before_watchpoint = true; |