From 2ec3c2da5df24b477fd4fd77560d8ed34d38e499 Mon Sep 17 00:00:00 2001 From: "Edgar E. Iglesias" Date: Tue, 13 Feb 2018 08:00:09 -0500 Subject: [PATCH] target-arm: Add TPIDR_EL2 Backports commit ff05f37babe7874f28dcead6e9e4f1904d35a13a from qemu --- qemu/target-arm/helper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qemu/target-arm/helper.c b/qemu/target-arm/helper.c index d33b062b..c80182b7 100644 --- a/qemu/target-arm/helper.c +++ b/qemu/target-arm/helper.c @@ -2184,6 +2184,8 @@ static const ARMCPRegInfo v8_el3_no_el2_cp_reginfo[] = { PL2_RW, 0, NULL, 0 }, { "SCTLR_EL2", 0,1,0, 3,4,0, ARM_CP_STATE_BOTH, ARM_CP_CONST, PL2_RW, 0, NULL, 0 }, + { "TPIDR_EL2", 0,13,0, 3,4,2, ARM_CP_STATE_BOTH, ARM_CP_CONST, + PL2_RW, 0, NULL, 0 }, REGINFO_SENTINEL }; @@ -2247,6 +2249,8 @@ static const ARMCPRegInfo v8_el2_cp_reginfo[] = { { "SCTLR_EL2", 0,1,0, 3,4,0, ARM_CP_STATE_BOTH, 0, PL2_RW, 0, NULL, 0, offsetof(CPUARMState, cp15.sctlr_el[2]), {0, 0}, NULL, NULL, sctlr_write, NULL, raw_write }, + { "TPIDR_EL2", 0,13,0, 3,4,2, ARM_CP_STATE_BOTH, 0, + PL2_RW, 0, NULL, 0, offsetof(CPUARMState, cp15.tpidr_el[2]) }, REGINFO_SENTINEL };