[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 03/25] arm: cpu: add CPU_RESOLVING
From: |
Andrew Jones |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 03/25] arm: cpu: add CPU_RESOLVING_TYPE macro |
Date: |
Tue, 23 Jan 2018 10:45:11 +0100 |
User-agent: |
Mutt/1.6.0.1 (2016-04-01) |
On Tue, Jan 23, 2018 at 09:08:02AM +0100, Igor Mammedov wrote:
> it will be used for providing to cpu name resolving class for
> parsing cpu model for system and user emulation code.
>
> Along with change add target to null-machine test, so
> that when switch to CPU_RESOLVING_TYPE happens,
> thest would ensure that null-mchine usecase still works.
>
> Signed-off-by: Igor Mammedov <address@hidden>
> ---
> CC: address@hidden
> CC: Peter Maydell <address@hidden>
> CC: Andrew Jones <address@hidden>
> ---
> target/arm/cpu.h | 1 +
> linux-user/main.c | 2 --
> tests/machine-none-test.c | 2 ++
> 3 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/target/arm/cpu.h b/target/arm/cpu.h
> index 9631670..f9fb141 100644
> --- a/target/arm/cpu.h
> +++ b/target/arm/cpu.h
> @@ -2171,6 +2171,7 @@ static inline bool arm_excp_unmasked(CPUState *cs,
> unsigned int excp_idx,
>
> #define ARM_CPU_TYPE_SUFFIX "-" TYPE_ARM_CPU
> #define ARM_CPU_TYPE_NAME(name) (name ARM_CPU_TYPE_SUFFIX)
> +#define CPU_RESOLVING_TYPE TYPE_ARM_CPU
>
> #define cpu_signal_handler cpu_arm_signal_handler
> #define cpu_list arm_cpu_list
> diff --git a/linux-user/main.c b/linux-user/main.c
> index 450eb3c..a35477e 100644
> --- a/linux-user/main.c
> +++ b/linux-user/main.c
> @@ -4325,8 +4325,6 @@ int main(int argc, char **argv, char **envp)
> #else
> cpu_model = "qemu32";
> #endif
> -#elif defined(TARGET_ARM)
> - cpu_model = "any";
> #elif defined(TARGET_UNICORE32)
> cpu_model = "any";
> #elif defined(TARGET_M68K)
> diff --git a/tests/machine-none-test.c b/tests/machine-none-test.c
> index 2eb13e8..1b213ff 100644
> --- a/tests/machine-none-test.c
> +++ b/tests/machine-none-test.c
> @@ -24,6 +24,8 @@ struct arch2cpu {
>
> static struct arch2cpu cpus_map[] = {
> /* tested targets list */
> + { "arm", "cortex-a15" },
> + { "aarch64", "cortex-a15" },
I understand that this doesn't matter for your purposes, but can we change
the aarch64 mapping to point to an aarch64 processor, e.g. cortex-a57,
instead?
Thanks,
drew
> };
>
> static const char *get_cpu_model_by_arch(const char *arch)
> --
> 2.7.4
>
>
- [Qemu-ppc] [PATCH v3 00/25] generalize parsing of cpu_model (part 4), Igor Mammedov, 2018/01/23
- [Qemu-ppc] [PATCH v3 02/25] tests: add machine 'none' with -cpu test, Igor Mammedov, 2018/01/23
- [Qemu-ppc] [PATCH v3 03/25] arm: cpu: add CPU_RESOLVING_TYPE macro, Igor Mammedov, 2018/01/23
- Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 03/25] arm: cpu: add CPU_RESOLVING_TYPE macro,
Andrew Jones <=
- [Qemu-ppc] [PATCH v3 04/25] x86: cpu: add CPU_RESOLVING_TYPE macro, Igor Mammedov, 2018/01/23
- [Qemu-ppc] [PATCH v3 05/25] alpha: cpu: add CPU_RESOLVING_TYPE macro, Igor Mammedov, 2018/01/23
- [Qemu-ppc] [PATCH v3 01/25] nios2: 10m50_devboard: replace cpu_model with cpu_type, Igor Mammedov, 2018/01/23
- [Qemu-ppc] [PATCH v3 07/25] lm32: cpu: add CPU_RESOLVING_TYPE macro, Igor Mammedov, 2018/01/23
- [Qemu-ppc] [PATCH v3 06/25] cris: cpu: add CPU_RESOLVING_TYPE macro, Igor Mammedov, 2018/01/23
- [Qemu-ppc] [PATCH v3 09/25] microblaze: cpu: add CPU_RESOLVING_TYPE macro, Igor Mammedov, 2018/01/23
- [Qemu-ppc] [PATCH v3 08/25] m68k: cpu: add CPU_RESOLVING_TYPE macro, Igor Mammedov, 2018/01/23
- [Qemu-ppc] [PATCH v3 11/25] moxie: cpu: add CPU_RESOLVING_TYPE macro, Igor Mammedov, 2018/01/23
- [Qemu-ppc] [PATCH v3 12/25] nios2: cpu: add CPU_RESOLVING_TYPE macro, Igor Mammedov, 2018/01/23