OSDN Git Service

accel: replace struct CpusAccel with AccelOpsClass
authorClaudio Fontana <cfontana@suse.de>
Thu, 4 Feb 2021 16:39:25 +0000 (17:39 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 5 Feb 2021 20:24:15 +0000 (10:24 -1000)
commitb86f59c71552591a17dd21ba8f09654bfa19a31e
treec73b9240fa6c4dbf46fdf1b67d65f7d283997589
parent940e43aa30e0f793bd18b79221296cdf17724018
accel: replace struct CpusAccel with AccelOpsClass

This will allow us to centralize the registration of
the cpus.c module accelerator operations (in accel/accel-softmmu.c),
and trigger it automatically using object hierarchy lookup from the
new accel_init_interfaces() initialization step, depending just on
which accelerators are available in the code.

Rename all tcg-cpus.c, kvm-cpus.c, etc to tcg-accel-ops.c,
kvm-accel-ops.c, etc, matching the object type names.

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Message-Id: <20210204163931.7358-18-cfontana@suse.de>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
44 files changed:
MAINTAINERS
accel/accel-common.c
accel/accel-softmmu.c
accel/accel-softmmu.h [new file with mode: 0644]
accel/kvm/kvm-accel-ops.c [moved from accel/kvm/kvm-cpus.c with 72% similarity]
accel/kvm/kvm-all.c
accel/kvm/kvm-cpus.h
accel/kvm/meson.build
accel/qtest/qtest.c
accel/tcg/meson.build
accel/tcg/tcg-accel-ops-icount.c [moved from accel/tcg/tcg-cpus-icount.c with 89% similarity]
accel/tcg/tcg-accel-ops-icount.h [moved from accel/tcg/tcg-cpus-icount.h with 88% similarity]
accel/tcg/tcg-accel-ops-mttcg.c [moved from accel/tcg/tcg-cpus-mttcg.c with 92% similarity]
accel/tcg/tcg-accel-ops-mttcg.h [new file with mode: 0644]
accel/tcg/tcg-accel-ops-rr.c [moved from accel/tcg/tcg-cpus-rr.c with 97% similarity]
accel/tcg/tcg-accel-ops-rr.h [moved from accel/tcg/tcg-cpus-rr.h with 100% similarity]
accel/tcg/tcg-accel-ops.c [moved from accel/tcg/tcg-cpus.c with 63% similarity]
accel/tcg/tcg-accel-ops.h [moved from accel/tcg/tcg-cpus.h with 72% similarity]
accel/tcg/tcg-all.c
accel/xen/xen-all.c
bsd-user/main.c
include/qemu/accel.h
include/sysemu/accel-ops.h [new file with mode: 0644]
include/sysemu/cpus.h
linux-user/main.c
softmmu/cpus.c
softmmu/vl.c
target/i386/hax/hax-accel-ops.c [moved from target/i386/hax/hax-cpus.c with 69% similarity]
target/i386/hax/hax-accel-ops.h [moved from target/i386/hax/hax-cpus.h with 95% similarity]
target/i386/hax/hax-all.c
target/i386/hax/hax-mem.c
target/i386/hax/hax-posix.c
target/i386/hax/hax-windows.c
target/i386/hax/hax-windows.h
target/i386/hax/meson.build
target/i386/hvf/hvf-accel-ops.c [moved from target/i386/hvf/hvf-cpus.c with 84% similarity]
target/i386/hvf/hvf-accel-ops.h [moved from target/i386/hvf/hvf-cpus.h with 94% similarity]
target/i386/hvf/hvf.c
target/i386/hvf/meson.build
target/i386/hvf/x86hvf.c
target/i386/whpx/meson.build
target/i386/whpx/whpx-accel-ops.c [moved from target/i386/whpx/whpx-cpus.c with 71% similarity]
target/i386/whpx/whpx-accel-ops.h [moved from target/i386/whpx/whpx-cpus.h with 96% similarity]
target/i386/whpx/whpx-all.c