On 1/13/23 06:04, Fabiano Rosas wrote:
The cpu_tcg.c file about to be moved into the tcg directory. Move the
code that is needed for cpus that also work with KVM into cpu.c.

Signed-off-by: Fabiano Rosas <faro...@suse.de>
---
  target/arm/cpu.c     | 76 +++++++++++++++++++++++++++++++++++++++++++
  target/arm/cpu_tcg.c | 77 --------------------------------------------
  2 files changed, 76 insertions(+), 77 deletions(-)

Actually, not true. This is tcg-only. As is the bulk of aarch64_max_initfn from which this is called -- note the first 4 lines of that function:

    if (kvm_enabled() || hvf_enabled()) {
        /* With KVM or HVF, '-cpu max' is identical to '-cpu host' */
        aarch64_host_initfn(obj);
        return;
    }

Thus the rest of the function is only reachable for tcg.


r~

Reply via email to