qemu-patch-raspberry4/target-arm
Peter Maydell 811595a2d4 target-arm: Fix reset and migration of TTBCR(S)
Commit 6459b94c26 broke reset and migration of the AArch32
TTBCR(S) register if the guest used non-LPAE page tables. This is
because the AArch32 TTBCR register definition is marked as ARM_CP_ALIAS,
meaning that the AArch64 variant has to handle migration and reset.
Although AArch64 TCR_EL3 doesn't need to care about the mask and
base_mask fields, AArch32 may do so, and so we must use the special
TTBCR reset and raw write functions to ensure they are set correctly.

This doesn't affect TCR_EL2, because the AArch32 equivalent of that
is HTCR, which never uses the non-LPAE page table variant.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reported-by: Pranith Kumar <bobby.prani+qemu@gmail.com>
Reviewed-by: Sergey Fedorov <sergey.fedorov@linaro.org>
Message-id: 1465488181-31977-1-git-send-email-peter.maydell@linaro.org
2016-06-14 15:59:12 +01:00
..
arch_dump.c
arm-powerctl.c
arm-powerctl.h
arm-semi.c
arm_ldst.h
cpu-qom.h
cpu.c
cpu.h target-arm: kvm64: set guest PMUv3 feature bit if supported 2016-06-14 15:59:12 +01:00
cpu64.c
crypto_helper.c
gdbstub.c
gdbstub64.c
helper-a64.c
helper-a64.h
helper.c target-arm: Fix reset and migration of TTBCR(S) 2016-06-14 15:59:12 +01:00
helper.h
internals.h target-arm: Set IL bit in syndromes for insn abort, watchpoint, swstep 2016-06-06 16:59:28 +01:00
iwmmxt_helper.c
kvm-consts.h
kvm-stub.c
kvm.c
kvm32.c hw/arm/virt: Add PMU node for virt machine 2016-06-14 15:59:12 +01:00
kvm64.c hw/arm/virt: Add PMU node for virt machine 2016-06-14 15:59:12 +01:00
kvm_arm.h hw/arm/virt: Add PMU node for virt machine 2016-06-14 15:59:12 +01:00
machine.c
Makefile.objs
monitor.c
neon_helper.c
op_addsub.h
op_helper.c target-arm: A64: Create Instruction Syndromes for Data Aborts 2016-06-06 16:59:28 +01:00
psci.c
translate-a64.c target-arm: A64: Create Instruction Syndromes for Data Aborts 2016-06-06 16:59:28 +01:00
translate.c target-arm: A64: Create Instruction Syndromes for Data Aborts 2016-06-06 16:59:28 +01:00
translate.h target-arm: A64: Create Instruction Syndromes for Data Aborts 2016-06-06 16:59:28 +01:00