[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v9 39/50] accel: move call to accel_init_interfaces
From: |
Claudio Fontana |
Subject: |
[RFC v9 39/50] accel: move call to accel_init_interfaces |
Date: |
Wed, 17 Mar 2021 19:30:02 +0100 |
move the call for sysemu specifically in machine_run_board_init,
mirror the calling sequence for user mode too.
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Claudio Fontana <cfontana@suse.de>
---
bsd-user/main.c | 2 +-
hw/core/machine.c | 1 +
linux-user/main.c | 2 +-
softmmu/vl.c | 1 -
4 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 798aba512c..ae0fd75aa1 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -914,8 +914,8 @@ int main(int argc, char **argv)
{
AccelClass *ac = ACCEL_GET_CLASS(current_accel());
- ac->init_machine(NULL);
accel_init_interfaces(ac);
+ ac->init_machine(NULL);
}
cpu = cpu_create(cpu_type);
env = cpu->env_ptr;
diff --git a/hw/core/machine.c b/hw/core/machine.c
index 257a664ea2..678558b9ac 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -1216,6 +1216,7 @@ void machine_run_board_init(MachineState *machine)
"on", false);
}
+ accel_init_interfaces(ACCEL_GET_CLASS(machine->accelerator));
machine_class->init(machine);
phase_advance(PHASE_MACHINE_INITIALIZED);
}
diff --git a/linux-user/main.c b/linux-user/main.c
index f956afccab..3ad442b82e 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -730,8 +730,8 @@ int main(int argc, char **argv, char **envp)
{
AccelClass *ac = ACCEL_GET_CLASS(current_accel());
- ac->init_machine(NULL);
accel_init_interfaces(ac);
+ ac->init_machine(NULL);
}
cpu = cpu_create(cpu_type);
env = cpu->env_ptr;
diff --git a/softmmu/vl.c b/softmmu/vl.c
index a750dae6b1..6015c18094 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -3538,7 +3538,6 @@ void qemu_init(int argc, char **argv, char **envp)
current_machine->cpu_type = parse_cpu_option(cpu_option);
}
/* NB: for machine none cpu_type could STILL be NULL here! */
- accel_init_interfaces(ACCEL_GET_CLASS(current_machine->accelerator));
qemu_resolve_machine_memdev();
parse_numa_opts(current_machine);
--
2.26.2
- [RFC v9 09/50] target/arm: split cpregs from tcg/helper.c, (continued)
- [RFC v9 09/50] target/arm: split cpregs from tcg/helper.c, Claudio Fontana, 2021/03/17
- [RFC v9 31/50] tests/qtest: skip bios-tables-test test_acpi_oem_fields_virt for KVM, Claudio Fontana, 2021/03/17
- [RFC v9 28/50] target/arm: move kvm-const.h, kvm.c, kvm64.c, kvm_arm.h to kvm/, Claudio Fontana, 2021/03/17
- [RFC v9 37/50] target/arm: create kvm cpu accel class, Claudio Fontana, 2021/03/17
- [RFC v9 36/50] Revert "target/arm: Restrict v8M IDAU to TCG", Claudio Fontana, 2021/03/17
- [RFC v9 41/50] target/arm: add tcg cpu accel class, Claudio Fontana, 2021/03/17
- [RFC v9 44/50] target/arm: cpu-sve: split TCG and KVM functionality, Claudio Fontana, 2021/03/17
- [RFC v9 40/50] accel: add double dispatch mechanism for class initialization, Claudio Fontana, 2021/03/17
- [RFC v9 45/50] target/arm: make is_aa64 and arm_el_is_aa64 a macro for !TARGET_AARCH64, Claudio Fontana, 2021/03/17
- [RFC v9 50/50] target/arm: refactor arm_cpu_finalize_features into cpu64, Claudio Fontana, 2021/03/17
- [RFC v9 39/50] accel: move call to accel_init_interfaces,
Claudio Fontana <=
- [RFC v9 42/50] target/arm: move TCG gt timer creation code in tcg/, Claudio Fontana, 2021/03/17
- [RFC v9 48/50] target/arm: tcg: restrict ZCR cpregs to TARGET_AARCH64, Claudio Fontana, 2021/03/17
- [RFC v9 47/50] target/arm: cpu-exceptions: new module, Claudio Fontana, 2021/03/17
- [RFC v9 24/50] target/arm: refactor exception and cpu code, Claudio Fontana, 2021/03/17
- [RFC v9 49/50] target/arm: cpu-pauth: new module for ARMv8.3 Pointer Authentication, Claudio Fontana, 2021/03/17
- [RFC v9 46/50] target/arm: arch_dump: restrict ELFCLASS64 to AArch64, Claudio Fontana, 2021/03/17