Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Yao Qi <yao@codesourcery.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: Mark Kettenis <mark.kettenis@xs4all.nl>, gdb-patches@sourceware.org
Subject: Re: [patch] Handle return small struct in rs600 (size is not 4/8)
Date: Tue, 16 Aug 2011 01:41:00 -0000	[thread overview]
Message-ID: <4E49CAB1.1090405@codesourcery.com> (raw)
In-Reply-To: <m239h2jyk2.fsf@igel.home>

On 08/16/2011 02:54 AM, Andreas Schwab wrote:
> Yao Qi <yao@codesourcery.com> writes:
> 
>> I think the description "shall be returned in r3 and r4, as if they were
>> first stored in memory area and then the low-addressed word were loaded
>> in r3 ...." is not very clear on the length of data.  In this case,
>> struct C variable is returned, and its content is 0x61 0x62 0x63.  They
>> (3 bytes) are stored in memory, and (3 bytes) are loaded into r3.  Since
>> 3 bytes, not 4, are loaded to r3
> 
> When you load a (32-bit) register from memory, you always read 4 bytes.
> 

Andreas, thanks for your clarification.  Please ignore my patch, and
sorry for the noise.

-- 
Yao (齐尧)


  reply	other threads:[~2011-08-16  1:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-15 15:22 Yao Qi
2011-08-15 15:42 ` [patch] Handle return small struct in ppc " Yao Qi
2011-08-15 16:06 ` [patch] Handle return small struct in rs600 " Mark Kettenis
2011-08-15 16:56   ` Yao Qi
2011-08-15 17:27     ` Pedro Alves
2011-08-15 18:54     ` Andreas Schwab
2011-08-16  1:41       ` Yao Qi [this message]
2011-08-15 17:57   ` Andreas Schwab

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=4E49CAB1.1090405@codesourcery.com \
    --to=yao@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    --cc=schwab@linux-m68k.org \
    /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