From: Richard Henderson Date: Tue, 9 Mar 2021 23:22:23 +0000 (-0600) Subject: accel/tcg: Rename tcg_init to tcg_init_machine X-Git-Tag: v6.1.0~126^2~24 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7109ef15c51d2a948f88764e4a4fe0666c4c91db;p=qemu-nvme.git accel/tcg: Rename tcg_init to tcg_init_machine We shortly want to use tcg_init for something else. Since the hook is called init_machine, match that. Reviewed-by: Luis Pires Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- diff --git a/accel/tcg/tcg-all.c b/accel/tcg/tcg-all.c index f132033999..30d81ff7f5 100644 --- a/accel/tcg/tcg-all.c +++ b/accel/tcg/tcg-all.c @@ -105,7 +105,7 @@ static void tcg_accel_instance_init(Object *obj) bool mttcg_enabled; -static int tcg_init(MachineState *ms) +static int tcg_init_machine(MachineState *ms) { TCGState *s = TCG_STATE(current_accel()); @@ -189,7 +189,7 @@ static void tcg_accel_class_init(ObjectClass *oc, void *data) { AccelClass *ac = ACCEL_CLASS(oc); ac->name = "tcg"; - ac->init_machine = tcg_init; + ac->init_machine = tcg_init_machine; ac->allowed = &tcg_allowed; object_class_property_add_str(oc, "thread",