]> git.proxmox.com Git - mirror_qemu.git/commit
hvf: arm: Handle unknown ID registers as RES0
authorAlexander Graf <agraf@csgraf.de>
Wed, 9 Feb 2022 12:41:35 +0000 (13:41 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Feb 2022 13:30:19 +0000 (13:30 +0000)
commit7f6c295cdfeaa229c360cac9a36e4e595aa902ae
tree05f0befb188c3727c9bc94fb71df955f4ebed10b
parentad99f64f1cfff7c5e7af0e697523d9b7e45423b6
hvf: arm: Handle unknown ID registers as RES0

Recent Linux versions added support to read ID_AA64ISAR2_EL1. On M1,
those reads trap into QEMU which handles them as faults.

However, AArch64 ID registers should always read as RES0. Let's
handle them accordingly.

This fixes booting Linux 5.17 guests.

Cc: qemu-stable@nongnu.org
Reported-by: Ivan Babrou <ivan@cloudflare.com>
Signed-off-by: Alexander Graf <agraf@csgraf.de>
Message-id: 20220209124135.69183-2-agraf@csgraf.de
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/hvf/hvf.c