summaryrefslogtreecommitdiffstats
path: root/accel
diff options
context:
space:
mode:
authorRichard Henderson2021-03-10 00:22:23 +0100
committerRichard Henderson2021-06-11 18:26:28 +0200
commit7109ef15c51d2a948f88764e4a4fe0666c4c91db (patch)
treed6641f5e36d290e13778610a5d4ff3de7d5043c6 /accel
parentaccel/tcg: Move alloc_code_gen_buffer to tcg/region.c (diff)
downloadqemu-7109ef15c51d2a948f88764e4a4fe0666c4c91db.tar.gz
qemu-7109ef15c51d2a948f88764e4a4fe0666c4c91db.tar.xz
qemu-7109ef15c51d2a948f88764e4a4fe0666c4c91db.zip
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 <luis.pires@eldorado.org.br> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'accel')
-rw-r--r--accel/tcg/tcg-all.c4
1 files changed, 2 insertions, 2 deletions
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",