DBGAUTHSTATUS register
Hello,
This is not a big issue: DBGAUTHSTATUS, according to the docs, should exist. According to "ARM Architecture Reference Manual, ARMv7-A and ARMv7-R edition" (DDI0406C_b_arm_architecture_reference_manual.pdf), DBGAUTHSTATUS is required in all implementations. Reading it should be permitted, even if as RAZ only (implying no features are implemented/enabled).
This trivial patch defines cp14 register DBGAUTHSTATUS.
Thank you,
---
Aleksandar Ristovski
QNX Software Systems
From 88e2c564e8a17c0494024d773db4b6c4a0646342 Mon Sep 17 00:00:00 2001
From: Aleksandar Ristovski <[email protected]>
Date: Thu, 29 May 2014 13:20:45 -0400
Subject: [PATCH] Author: Aleksandar Ristovski <[email protected]> Date: Thu
May 29 13:03:28 2014 -0400
* target-arm/helper.c: Define DBGAUTHSTATUS register as RAZ.
--- target-arm/helper.c | 2 ++ 1 file changed, 2 insertions(+)
target-arm/helper.c +2 -0
@@ -395,6 +395,8 @@ static const ARMCPRegInfo cp_reginfo[] = {*/ { .name = "DBGDIDR", .cp = 14, .crn = 0, .crm = 0, .opc1 = 0, .opc2 = 0, .access = PL0_R, .type = ARM_CP_CONST, .resetvalue = 0 }, + { .name = "DBGAUTHSTATUS", .cp = 14, .crn = 7, .crm = 14, .opc1 = 0, + .opc2 = 6, .access = PL0_R, .type = ARM_CP_CONST, .resetvalue = 0 }, { .name = "FCSEIDR", .cp = 15, .crn = 13, .crm = 0, .opc1 = 0, .opc2 = 0, .access = PL1_RW, .fieldoffset = offsetof(CPUARMState, cp15.c13_fcse), .resetvalue = 0, .writefn = fcse_write, .raw_writefn = raw_write, },
Signature · 1 line
1.9.1
Quoted 6 lines · Aleksandar Ristovski
Hello,
This is not a big issue: DBGAUTHSTATUS, according to the docs, should exist. According to "ARM Architecture Reference Manual, ARMv7-A and ARMv7-R edition" (DDI0406C_b_arm_architecture_reference_manual.pdf), DBGAUTHSTATUS is required in all implementations. Reading it should be permitted, even if as RAZ only (implying no features are implemented/enabled).
This trivial patch defines cp14 register DBGAUTHSTATUS.
While the patch appears to be trivial, I had to grab the above mentioned ARM manual and read a bit from there. Unfortunately, since I don't have any prior knowlege about this stuff, at all, I still have to accept for granted that it is the right thing to do. Maybe it is better to route this to the ARM maintainer instead (Cc'ed) ?
Thanks,
/mjt
Quoted 5 lines · Michael Tokarev
Quoted 4 lines · Aleksandar Ristovski
Hello,
This is not a big issue: DBGAUTHSTATUS, according to the docs, should exist. According to "ARM Architecture Reference Manual, ARMv7-A and ARMv7-R edition" (DDI0406C_b_arm_architecture_reference_manual.pdf), DBGAUTHSTATUS is required in all implementations. Reading it should be permitted, even if as RAZ only (implying no features are implemented/enabled).
Quoted 7 lines
Quoted 1 line
This trivial patch defines cp14 register DBGAUTHSTATUS.
While the patch appears to be trivial, I had to grab the above mentioned ARM manual and read a bit from there. Unfortunately, since I don't have any prior knowlege about this stuff, at all, I still have to accept for granted that it is the right thing to do. Maybe it is better to route this to the ARM maintainer instead (Cc'ed) ?
Also, this patch does not have the Signed-off-by line.
Thanks,
/mjt