[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] arm: virt: Fix the segmentation fault when s
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v2] arm: virt: Fix the segmentation fault when specifying an unsupported CPU |
Date: |
Tue, 17 Jan 2017 11:43:53 +0000 |
On 17 January 2017 at 02:15, Shannon Zhao <address@hidden> wrote:
> From: Shannon Zhao <address@hidden>
>
> For example, using -cpu generic will cause qemu segmentation fault.
>
> Signed-off-by: Shannon Zhao <address@hidden>
> ---
> V2: Just remove the member NULL instead of checking twice
> ---
> hw/arm/virt.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
> index 7a03f84..95ac585 100644
> --- a/hw/arm/virt.c
> +++ b/hw/arm/virt.c
> @@ -167,7 +167,6 @@ static const char *valid_cpus[] = {
> "cortex-a53",
> "cortex-a57",
> "host",
> - NULL
> };
>
> static bool cpuname_valid(const char *cpu)
Applied to target-arm.next (with some expansion of the commit
message), thanks.
-- PMM