[PATCH v2 2/2] hw/arm: Add Cortex-A5 to virt device

Byron Lathi posted 2 patches 4 years, 1 month ago
Maintainers: Peter Maydell <peter.maydell@linaro.org>
[PATCH v2 2/2] hw/arm: Add Cortex-A5 to virt device
Posted by Byron Lathi 4 years, 1 month ago
Add the Cortex-A5 to the list of supported CPUs by the virt platform.

Signed-off-by: Byron Lathi <bslathi19@gmail.com>
---
 docs/system/arm/virt.rst | 1 +
 hw/arm/virt.c            | 1 +
 2 files changed, 2 insertions(+)

diff --git a/docs/system/arm/virt.rst b/docs/system/arm/virt.rst
index 850787495b..2384606ae7 100644
--- a/docs/system/arm/virt.rst
+++ b/docs/system/arm/virt.rst
@@ -50,6 +50,7 @@ The virt board supports:
 
 Supported guest CPU types:
 
+- ``cortex-a5`` (32-bit)
 - ``cortex-a7`` (32-bit)
 - ``cortex-a15`` (32-bit; the default)
 - ``cortex-a53`` (64-bit)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 6bce595aba..545bd2f958 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -195,6 +195,7 @@ static const int a15irqmap[] = {
 };
 
 static const char *valid_cpus[] = {
+    ARM_CPU_TYPE_NAME("cortex-a5"),
     ARM_CPU_TYPE_NAME("cortex-a7"),
     ARM_CPU_TYPE_NAME("cortex-a15"),
     ARM_CPU_TYPE_NAME("cortex-a53"),
-- 
2.30.2


Re: [PATCH v2 2/2] hw/arm: Add Cortex-A5 to virt device
Posted by Philippe Mathieu-Daudé 4 years, 1 month ago
On 12/16/21 07:48, Byron Lathi wrote:
> Add the Cortex-A5 to the list of supported CPUs by the virt platform.
> 
> Signed-off-by: Byron Lathi <bslathi19@gmail.com>
> ---
>  docs/system/arm/virt.rst | 1 +
>  hw/arm/virt.c            | 1 +
>  2 files changed, 2 insertions(+)

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