hw/arm/virt: mark timer in fdt as v8-compatible
authorClaudio Fontana <claudio.fontana@huawei.com>
Fri, 24 Oct 2014 11:19:11 +0000 (12:19 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Oct 2014 11:19:11 +0000 (12:19 +0100)
commitb32a950910bc03f2c012794b3215fc2de8f90de3
treefe6d16fcfbefae9852fe33f06fe4c1e2517f3f5e
parent7797a73947d5c0e63dd5552b348cf66c384b4555
hw/arm/virt: mark timer in fdt as v8-compatible

check if the first cpu is an armv8 cpu, and if so, put
arm,armv8-timer in the compatible string list.

Note that due to this check, this patch moves the creation
of the timer fdt node to after the cpu creation loop.

Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
Message-id: 1411736960-24206-1-git-send-email-hw.claudio@gmail.com
[PMM: updated to list arm,armv8-timer first]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c