]> git.proxmox.com Git - mirror_qemu.git/commit - target/arm/cpu.c
target/arm: Add a core count property
authorAlistair Francis <alistair.francis@xilinx.com>
Fri, 9 Mar 2018 17:09:43 +0000 (17:09 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 9 Mar 2018 17:09:43 +0000 (17:09 +0000)
commitf9a697112ee64180354f98309a5d6b691cc8699d
tree00680529bed683a45c50eb78209affdf7e787748
parentb39b61e410022f96ceb53d4381d25cba5126ac44
target/arm: Add a core count property

The cortex A53 TRM specifies that bits 24 and 25 of the L2CTLR register
specify the number of cores in the processor, not the total number of
cores in the system. To report this correctly on machines with multiple
CPU clusters (ARM's big.LITTLE or Xilinx's ZynqMP) we need to allow
the machine to overwrite this value. To do this let's add an optional
property.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Message-id: ef01d95c0759e88f47f22d11b14c91512a658b4f.1520018138.git.alistair.francis@xilinx.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.c
target/arm/cpu.h
target/arm/cpu64.c