All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] DBGAUTHSTATUS register
@ 2014-05-29 17:32 Aleksandar Ristovski
  2014-06-10 15:50   ` [Qemu-devel] " Michael Tokarev
  0 siblings, 1 reply; 5+ messages in thread
From: Aleksandar Ristovski @ 2014-05-29 17:32 UTC (permalink / raw)
  To: qemu-trivial

[-- Attachment #1: Type: text/plain, Size: 490 bytes --]

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



[-- Attachment #2: 0001-Author-Aleksandar-Ristovski-ARistovski-qnx.com.patch --]
[-- Type: text/x-patch, Size: 1142 bytes --]

From 88e2c564e8a17c0494024d773db4b6c4a0646342 Mon Sep 17 00:00:00 2001
From: Aleksandar Ristovski <ARistovski@qnx.com>
Date: Thu, 29 May 2014 13:20:45 -0400
Subject: [PATCH] Author: Aleksandar Ristovski <ARistovski@qnx.com> 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(+)

diff --git a/target-arm/helper.c b/target-arm/helper.c
index ec031f5..ce1f0aa 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -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, },
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Qemu-trivial] DBGAUTHSTATUS register
  2014-05-29 17:32 [Qemu-trivial] DBGAUTHSTATUS register Aleksandar Ristovski
@ 2014-06-10 15:50   ` Michael Tokarev
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Tokarev @ 2014-06-10 15:50 UTC (permalink / raw)
  To: Aleksandar Ristovski, qemu-trivial; +Cc: Peter Maydell, qemu-devel

29.05.2014 21:32, Aleksandar Ristovski wrote:
> 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [Qemu-trivial] DBGAUTHSTATUS register
@ 2014-06-10 15:50   ` Michael Tokarev
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Tokarev @ 2014-06-10 15:50 UTC (permalink / raw)
  To: Aleksandar Ristovski, qemu-trivial; +Cc: Peter Maydell, qemu-devel

29.05.2014 21:32, Aleksandar Ristovski wrote:
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-trivial] DBGAUTHSTATUS register
  2014-06-10 15:50   ` [Qemu-devel] " Michael Tokarev
@ 2014-06-10 15:54     ` Michael Tokarev
  -1 siblings, 0 replies; 5+ messages in thread
From: Michael Tokarev @ 2014-06-10 15:54 UTC (permalink / raw)
  To: Aleksandar Ristovski, qemu-trivial; +Cc: Peter Maydell, qemu-devel

10.06.2014 19:50, Michael Tokarev wrote:
> 29.05.2014 21:32, Aleksandar Ristovski wrote:
>> 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) ?

Also, this patch does not have the Signed-off-by line.

Thanks,

/mjt




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [Qemu-trivial] DBGAUTHSTATUS register
@ 2014-06-10 15:54     ` Michael Tokarev
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Tokarev @ 2014-06-10 15:54 UTC (permalink / raw)
  To: Aleksandar Ristovski, qemu-trivial; +Cc: Peter Maydell, qemu-devel

10.06.2014 19:50, Michael Tokarev wrote:
> 29.05.2014 21:32, Aleksandar Ristovski wrote:
>> 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) ?

Also, this patch does not have the Signed-off-by line.

Thanks,

/mjt

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-10 15:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-29 17:32 [Qemu-trivial] DBGAUTHSTATUS register Aleksandar Ristovski
2014-06-10 15:50 ` Michael Tokarev
2014-06-10 15:50   ` [Qemu-devel] " Michael Tokarev
2014-06-10 15:54   ` Michael Tokarev
2014-06-10 15:54     ` [Qemu-devel] " Michael Tokarev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.