From: Blue Swirl <blauwirbel@gmail.com>
To: Artyom Tarasenko <atar4qemu@googlemail.com>
Cc: qemu-devel@nongnu.org, Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] Re: [PATCH] Remove IO_MEM_SUBWIDTH.
Date: Fri, 7 May 2010 18:28:10 +0300 [thread overview]
Message-ID: <l2vf43fc5581005070828lb66a4abap3f63d630ae9d4737@mail.gmail.com> (raw)
In-Reply-To: <l2ifb8d4f71005061325i9ec25f73nc637446e1dd579c8@mail.gmail.com>
On 5/6/10, Artyom Tarasenko <atar4qemu@googlemail.com> wrote:
> 2010/4/28 Artyom Tarasenko <atar4qemu@googlemail.com>:
>
> > 2010/4/27 Richard Henderson <rth@twiddle.net>:
> >> On 04/26/2010 02:54 PM, Artyom Tarasenko wrote:
> >>> This patch introduces a regression. qemu crashes on lance test:
> >>
> >> I'm not sure how to get to this, since the sparc-test images don't
> >> include ifconfig, and I havn't been able to find a sparc install
> >> image that works (doesn't support sparc32 or sparc64 fails to load).
> >>
> >> That said, try this and see if it works.
> >>
> >>
> >> r~
> >>
> >> ---
> >> diff --git a/exec.c b/exec.c
> >> index 14d1fd7..572d3fd 100644
> >> --- a/exec.c
> >> +++ b/exec.c
> >> @@ -3286,6 +3286,8 @@ static int cpu_register_io_memory_fixed(int io_index,
> >> CPUWriteMemoryFunc * const *mem_write,
> >> void *opaque)
> >> {
> >> + int i;
> >> +
> >> if (io_index <= 0) {
> >> io_index = get_free_io_mem_idx();
> >> if (io_index == -1)
> >> @@ -3296,8 +3298,14 @@ static int cpu_register_io_memory_fixed(int io_index,
> >> return -1;
> >> }
> >>
> >> - memcpy(io_mem_read[io_index], mem_read, 3 * sizeof(CPUReadMemoryFunc*));
> >> - memcpy(io_mem_write[io_index], mem_write, 3 * sizeof(CPUWriteMemoryFunc*));
> >> + for (i = 0; i < 3; ++i) {
> >> + io_mem_read[io_index][i]
> >> + = (mem_read[i] ? mem_read[i] : unassigned_mem_read[i]);
> >> + }
> >> + for (i = 0; i < 3; ++i) {
> >> + io_mem_write[io_index][i]
> >> + = (mem_write[i] ? mem_write[i] : unassigned_mem_write[i]);
> >> + }
> >> io_mem_opaque[io_index] = opaque;
> >>
> >> return (io_index << IO_MEM_SHIFT);
> >>
>
>
> Why the fix didn't make it into the git?
> Does it introduce other problems?
A diff is not a patch, there is no commit description or SoB.
> > Looks good, thanks.
> >
> > Acked-by: Artyom Tarasenko <atar4qemu@gmail.com>
> >
>
> --
> Regards,
> Artyom Tarasenko
>
> solaris/sparc under qemu blog: http://tyom.blogspot.com/
>
next prev parent reply other threads:[~2010-05-07 15:28 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-20 20:26 [Qemu-devel] [PATCH 0/2] [RFC] 64-bit io paths Richard Henderson
2010-04-20 19:54 ` [Qemu-devel] [PATCH 1/2] io: Add CPUIOMemoryOps and use it Richard Henderson
2010-04-20 20:22 ` [Qemu-devel] [PATCH 2/2] io: Add readq/writeq hooks and use them Richard Henderson
2010-04-22 19:38 ` [Qemu-devel] [PATCH 0/2] [RFC] 64-bit io paths Blue Swirl
2010-04-22 19:55 ` Richard Henderson
2010-04-22 20:01 ` Blue Swirl
2010-04-22 21:19 ` Richard Henderson
2010-04-23 18:30 ` Blue Swirl
2010-05-28 20:45 ` Paul Brook
2010-04-22 23:47 ` [Qemu-devel] [PATCH] Remove IO_MEM_SUBWIDTH Richard Henderson
2010-04-25 15:06 ` [Qemu-devel] " Blue Swirl
2010-04-26 21:54 ` Artyom Tarasenko
2010-04-27 18:30 ` Richard Henderson
2010-04-28 19:29 ` Artyom Tarasenko
2010-05-06 20:25 ` Artyom Tarasenko
2010-05-07 15:28 ` Blue Swirl [this message]
2010-05-07 16:52 ` [Qemu-devel] [PATCH] Fill in unassigned mem read/write callbacks Richard Henderson
2010-05-07 17:02 ` [Qemu-devel] " Blue Swirl
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=l2vf43fc5581005070828lb66a4abap3f63d630ae9d4737@mail.gmail.com \
--to=blauwirbel@gmail.com \
--cc=atar4qemu@googlemail.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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).