[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH 1/3] target/arm: Make cpu_register() and set
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [RFC PATCH 1/3] target/arm: Make cpu_register() and set_feature() available for other files |
Date: |
Tue, 3 Sep 2019 09:01:55 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 9/3/19 8:48 AM, Thomas Huth wrote:
> Move the common set_feature() and unset_feature() functions from cpu.c and
> cpu64.c to cpu.h, and make cpu_register() (renamed to arm_cpu_register())
> available from there, too, so we can register CPUs also from other files
> in the future.
>
> Signed-off-by: Thomas Huth <address@hidden>
> ---
> target/arm/cpu.c | 20 ++------------------
> target/arm/cpu.h | 18 ++++++++++++++++++
> target/arm/cpu64.c | 16 ----------------
> 3 files changed, 20 insertions(+), 34 deletions(-)
internals.h would be better, since presumably the uses will not leave
target/arm/.
Otherwise,
Reviewed-by: Richard Henderson <address@hidden>
r~