From: Yoshinori Sato <ysato@users.sourceforge.jp>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH v2] hw/rx: rx-gdbsim DTB load address aligned of 16byte.
Date: Fri, 04 Feb 2022 00:24:24 +0900 [thread overview]
Message-ID: <87tudg0y8n.wl-ysato@users.sourceforge.jp> (raw)
In-Reply-To: <b68c1a68-9404-2031-e729-ac0b1cb1c263@amsat.org>
On Wed, 02 Feb 2022 21:46:22 +0900,
Philippe Mathieu-Daudé via wrote:
>
> On 2/2/22 11:30, Yoshinori Sato wrote:
> > Linux kernel required alined address of DTB.
> > But missing align in dtb load function.
> > Fixed to load to the correct address.
> >
> > v2 changes.
> > Use ROUND_DOWN macro.
> >
> > Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
> > Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> > ---
> > hw/rx/rx-gdbsim.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/hw/rx/rx-gdbsim.c b/hw/rx/rx-gdbsim.c
> > index 75d1fec6ca..2356af83a0 100644
> > --- a/hw/rx/rx-gdbsim.c
> > +++ b/hw/rx/rx-gdbsim.c
> > @@ -142,7 +142,7 @@ static void rx_gdbsim_init(MachineState *machine)
> > exit(1);
> > }
> > /* DTB is located at the end of SDRAM space. */
> > - dtb_offset = machine->ram_size - dtb_size;
> > + dtb_offset = ROUND_DOWN(machine->ram_size - dtb_size, 16 - 1);
>
> Why did you add '-1'?
>
Oh. I misunderstood.
I'll sent v3.
Thanks.
--
Yosinori Sato
prev parent reply other threads:[~2022-02-03 15:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-02 10:30 [PATCH v2] hw/rx: rx-gdbsim DTB load address aligned of 16byte Yoshinori Sato
2022-02-02 12:46 ` Philippe Mathieu-Daudé via
2022-02-03 15:24 ` Yoshinori Sato [this message]
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=87tudg0y8n.wl-ysato@users.sourceforge.jp \
--to=ysato@users.sourceforge.jp \
--cc=f4bug@amsat.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.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;
as well as URLs for NNTP newsgroup(s).