public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Yufeng Zhang <Yufeng.Zhang@arm.com>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: "palves@redhat.com" <palves@redhat.com>,
	 "pinskia@gmail.com" <pinskia@gmail.com>,
	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	 "apinski@cavium.com" <apinski@cavium.com>
Subject: Re: [PATCH] AARCH64: Change cpsr type to be 64bit.
Date: Tue, 24 Dec 2013 10:23:00 -0000	[thread overview]
Message-ID: <52B9609F.9040107@arm.com> (raw)
In-Reply-To: <201312231804.rBNI4sF0013320@glazunov.sibelius.xs4all.nl>

On 12/23/13 18:04, Mark Kettenis wrote:
>> Date: Mon, 23 Dec 2013 17:39:00 +0000
>> From: Yufeng Zhang<Yufeng.Zhang@arm.com>
>>
>> On 12/20/13 17:47, Pedro Alves wrote:
>>> On 12/18/2013 07:08 PM, Andrew Pinski wrote:
>>>> As mentioned in http://www.spinics.net/lists/arm-kernel/msg290896.html, we should change gdb's notion of cpsr to be 64bit.
>>>>
>>>> OK?  Build and tested for aarch64-linux-gnu with no regressions.
>>>> I also double checked to make sure that what is passed down from the kernel (via sigcontext), is the full 64bit.
>>>
>>> With this, the register will be exposed as 64-bit to the
>>> user.  Is that desirable?  The fact that the original
>>> description used 32-bit makes it sounds like it's not.
>>> What's the real register width at the (asm visible)
>>> machine level?
>>
>> There is no access to CPSR as a single register in AArch64 (*).
>> Instead, process states can be accessed/modified via system
>> instructions.  I guess the kernel synthesizes one CPSR register, so if
>> kernel defines it as a 64-bit register, it is reasonable for gdb to
>> treat it of the same size as well.
>
> Basing GDB's fundamentals on a particular OS's ptrace(2)
> implementation is a bad idea.

Do you have a suggestion on how to do it more properly?

>
>> Reference:
>>
>> * ARMv8 Instruction Set Overview - Chapter 3 A64 Overview
>
> Wow, is the ARMv8 instruction set documentation really only available
> to "ARM Custumers"?  How are we supposed to review patches for an
> architecture for which we don't have access to the fundamental
> documentation?
>

It is 'customer' in a broader sense.  I think the requirement on having 
an account is for the purpose of protecting ARM IP.  While it is fairly 
easy to open an account, I understand that it still causes 
inconvenience.  I hope the situation will be improved in the future.

Thanks,
Yufeng

  reply	other threads:[~2013-12-24 10:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-18 19:08 Andrew Pinski
2013-12-20 17:48 ` Pedro Alves
2013-12-23 17:39   ` Yufeng Zhang
2013-12-23 18:05     ` Mark Kettenis
2013-12-24 10:23       ` Yufeng Zhang [this message]
2013-12-23 17:13 ` Yufeng Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52B9609F.9040107@arm.com \
    --to=yufeng.zhang@arm.com \
    --cc=apinski@cavium.com \
    --cc=gdb-patches@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    --cc=palves@redhat.com \
    --cc=pinskia@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).