[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v22 01/17] i386: split cpu accelerators from cpu.c, using Acc
From: |
Richard Henderson |
Subject: |
Re: [PATCH v22 01/17] i386: split cpu accelerators from cpu.c, using AccelCPUClass |
Date: |
Wed, 24 Feb 2021 17:23:56 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 2/24/21 5:34 AM, Claudio Fontana wrote:
> i386 is the first user of AccelCPUClass, allowing to split
> cpu.c into:
>
> cpu.c cpuid and common x86 cpu functionality
> host-cpu.c host x86 cpu functions and "host" cpu type
> kvm/kvm-cpu.c KVM x86 AccelCPUClass
> hvf/hvf-cpu.c HVF x86 AccelCPUClass
> tcg/tcg-cpu.c TCG x86 AccelCPUClass
>
> Signed-off-by: Claudio Fontana <cfontana@suse.de>
> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> target/i386/cpu.h | 20 +-
> target/i386/host-cpu.h | 19 ++
> target/i386/kvm/kvm-cpu.h | 41 ++++
> target/i386/tcg/tcg-cpu.h | 15 --
> hw/i386/pc_piix.c | 1 +
> target/i386/cpu.c | 390 ++++--------------------------------
> target/i386/host-cpu.c | 201 +++++++++++++++++++
> target/i386/hvf/hvf-cpu.c | 68 +++++++
> target/i386/kvm/kvm-cpu.c | 151 ++++++++++++++
> target/i386/kvm/kvm.c | 3 +-
> target/i386/tcg/tcg-cpu.c | 113 ++++++++++-
> MAINTAINERS | 2 +-
> target/i386/hvf/meson.build | 1 +
> target/i386/kvm/meson.build | 7 +-
> target/i386/meson.build | 6 +-
> 15 files changed, 651 insertions(+), 387 deletions(-)
> create mode 100644 target/i386/host-cpu.h
> create mode 100644 target/i386/kvm/kvm-cpu.h
> delete mode 100644 target/i386/tcg/tcg-cpu.h
> create mode 100644 target/i386/host-cpu.c
> create mode 100644 target/i386/hvf/hvf-cpu.c
> create mode 100644 target/i386/kvm/kvm-cpu.c
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
- [PATCH v22 00/17] i386 cleanup PART 2, Claudio Fontana, 2021/02/24
- [PATCH v22 02/17] cpu: call AccelCPUClass::cpu_realizefn in cpu_exec_realizefn, Claudio Fontana, 2021/02/24
- [PATCH v22 04/17] target/i386: fix host_cpu_adjust_phys_bits error handling, Claudio Fontana, 2021/02/24
- [PATCH v22 03/17] accel: introduce new accessor functions, Claudio Fontana, 2021/02/24
- [PATCH v22 01/17] i386: split cpu accelerators from cpu.c, using AccelCPUClass, Claudio Fontana, 2021/02/24
- Re: [PATCH v22 01/17] i386: split cpu accelerators from cpu.c, using AccelCPUClass,
Richard Henderson <=
- [PATCH v22 07/17] i386: split off sysemu-only functionality in tcg-cpu, Claudio Fontana, 2021/02/24
- [PATCH v22 05/17] accel-cpu: make cpu_realizefn return a bool, Claudio Fontana, 2021/02/24
- [PATCH v22 08/17] i386: split smm helper (sysemu), Claudio Fontana, 2021/02/24
- [PATCH v22 06/17] meson: add target_user_arch, Claudio Fontana, 2021/02/24