diff mbox series

[v3,5/6] hw/arm/virt: Add "max" to the list of CPU types "virt" supports

Message ID 20180308130626.12393-6-peter.maydell@linaro.org
State Superseded
Headers show
Series arm: support -cpu max (and gic-version=max) | expand

Commit Message

Peter Maydell March 8, 2018, 1:06 p.m. UTC
Allow the virt board to support '-cpu max' in the same way
it already handles '-cpu host'.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

---
 hw/arm/virt.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.16.2

Comments

Alex Bennée March 9, 2018, 1:46 p.m. UTC | #1
Peter Maydell <peter.maydell@linaro.org> writes:

> Allow the virt board to support '-cpu max' in the same way

> it already handles '-cpu host'.

>

> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


Reviewed-by: Alex Bennée <alex.bennee@linaro.org>


> ---

>  hw/arm/virt.c | 1 +

>  1 file changed, 1 insertion(+)

>

> diff --git a/hw/arm/virt.c b/hw/arm/virt.c

> index dbb3c8036a..cda4b83586 100644

> --- a/hw/arm/virt.c

> +++ b/hw/arm/virt.c

> @@ -169,6 +169,7 @@ static const char *valid_cpus[] = {

>      ARM_CPU_TYPE_NAME("cortex-a53"),

>      ARM_CPU_TYPE_NAME("cortex-a57"),

>      ARM_CPU_TYPE_NAME("host"),

> +    ARM_CPU_TYPE_NAME("max"),

>  };

>

>  static bool cpu_type_valid(const char *cpu)



--
Alex Bennée
Philippe Mathieu-Daudé March 9, 2018, 4:49 p.m. UTC | #2
On 03/08/2018 02:06 PM, Peter Maydell wrote:
> Allow the virt board to support '-cpu max' in the same way

> it already handles '-cpu host'.

> 

> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


> ---

>  hw/arm/virt.c | 1 +

>  1 file changed, 1 insertion(+)

> 

> diff --git a/hw/arm/virt.c b/hw/arm/virt.c

> index dbb3c8036a..cda4b83586 100644

> --- a/hw/arm/virt.c

> +++ b/hw/arm/virt.c

> @@ -169,6 +169,7 @@ static const char *valid_cpus[] = {

>      ARM_CPU_TYPE_NAME("cortex-a53"),

>      ARM_CPU_TYPE_NAME("cortex-a57"),

>      ARM_CPU_TYPE_NAME("host"),

> +    ARM_CPU_TYPE_NAME("max"),

>  };

>  

>  static bool cpu_type_valid(const char *cpu)

>
diff mbox series

Patch

diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index dbb3c8036a..cda4b83586 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -169,6 +169,7 @@  static const char *valid_cpus[] = {
     ARM_CPU_TYPE_NAME("cortex-a53"),
     ARM_CPU_TYPE_NAME("cortex-a57"),
     ARM_CPU_TYPE_NAME("host"),
+    ARM_CPU_TYPE_NAME("max"),
 };
 
 static bool cpu_type_valid(const char *cpu)