qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH v3 18/28] target/arm: Move common cpu code into cpu.c


From: Richard Henderson
Subject: Re: [RFC PATCH v3 18/28] target/arm: Move common cpu code into cpu.c
Date: Fri, 13 Jan 2023 12:01:06 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

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 <farosas@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

[Prev in Thread] Current Thread [Next in Thread]