qemu-ppc
[Top][All Lists]
Advanced

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

Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 08/25] m68k: cpu: add CPU_RESOLVIN


From: Laurent Vivier
Subject: Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 08/25] m68k: cpu: add CPU_RESOLVING_TYPE macro
Date: Wed, 24 Jan 2018 13:58:14 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

Le 23/01/2018 à 09:08, Igor Mammedov a écrit :
> 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,
> test would ensure that null-mchine usecase still works.
> 
> Signed-off-by: Igor Mammedov <address@hidden>
> ---
> CC: Laurent Vivier <address@hidden>
> ---
>  target/m68k/cpu.h         | 1 +
>  tests/machine-none-test.c | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/target/m68k/cpu.h b/target/m68k/cpu.h
> index 2985b03..8a4299a 100644
> --- a/target/m68k/cpu.h
> +++ b/target/m68k/cpu.h
> @@ -405,6 +405,7 @@ void register_m68k_insns (CPUM68KState *env);
>  
>  #define M68K_CPU_TYPE_SUFFIX "-" TYPE_M68K_CPU
>  #define M68K_CPU_TYPE_NAME(model) model M68K_CPU_TYPE_SUFFIX
> +#define CPU_RESOLVING_TYPE TYPE_M68K_CPU
>  
>  #define cpu_signal_handler cpu_m68k_signal_handler
>  #define cpu_list m68k_cpu_list
> diff --git a/tests/machine-none-test.c b/tests/machine-none-test.c
> index 1159290..c9445b6 100644
> --- a/tests/machine-none-test.c
> +++ b/tests/machine-none-test.c
> @@ -31,6 +31,7 @@ static struct arch2cpu cpus_map[] = {
>      { "alpha", "ev67" },
>      { "cris", "crisv32" },
>      { "lm32", "lm32-full" },
> +    { "m68k", "m5206" },
>  };
>  
>  static const char *get_cpu_model_by_arch(const char *arch)
> 

Reviewed-by: Laurent Vivier <address@hidden>




reply via email to

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