From: Salvatore Lionetti <salvatorelionetti@yahoo.it>
To: Vincent Palatin <vpalatin@chromium.org>
Cc: Blue Swirl <blauwirbel@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Memory Map
Date: Thu, 3 Mar 2011 09:20:48 +0000 (GMT) [thread overview]
Message-ID: <785479.73458.qm@web27208.mail.ukl.yahoo.com> (raw)
In-Reply-To: <AANLkTin2bMafivJC9ZjBc29mQgeeQsF1w0Aq0Rcym2zC@mail.gmail.com>
Sure, i'm very interested in.
I've used another implementation that still require large amount of data to be allocated (but with O(1) search time)
Have a good day
--- Mer 2/3/11, Vincent Palatin <vpalatin@chromium.org> ha scritto:
> Da: Vincent Palatin <vpalatin@chromium.org>
> Oggetto: Re: [Qemu-devel] Memory Map
> A: "Salvatore Lionetti" <salvatorelionetti@yahoo.it>
> Cc: "Blue Swirl" <blauwirbel@gmail.com>, qemu-devel@nongnu.org
> Data: Mercoledì 2 marzo 2011, 22:13
> Hi,
>
> On Wed, Mar 2, 2011 at 12:11, Salvatore Lionetti
> <salvatorelionetti@yahoo.it>
> wrote:
> > Still now, some memory region is called with
> base+offset.
> >
> > So:
> >
> > [0x204] <= value (write from uP register)
> > cause
> > read(opaque, offset=204, value)
> >
> > while
> > [0x504] <= value (write from uP register)
> > cause
> > read(opaque, offset=4, value)
> >
> > The two opaque are different as expected.
> >
> > Where i am wrong?
>
> If you mean 0x5004 and not 0x504 (as stated in your
> previous email),
> IMO it is a current limitation of the Qemu feature called
> "subpage"
> (which is used when you are mapping a memory area smaller
> than the MMU
> page size as in your example).
>
> When using subpages in the current code, the "offset"
> becomes the
> distance to the MMU page boundary instead of the distance
> to the base
> address of the peripheral. This is somewhat impractical and
> confusing
> when you are mapping the same subpage sized MMIO device at
> different
> addresses.
> As the emulation I'm working on has a lot of subpage sized
> peripherals, I have written a patch to workaround this
> limitation. I
> will send it to the list for comment if you want to try
> it.
>
> --
> Vincent
>
prev parent reply other threads:[~2011-03-03 9:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-24 9:08 [Qemu-devel] Memory Map Salvatore Lionetti
2011-02-25 16:10 ` Blue Swirl
2011-03-02 17:11 ` Salvatore Lionetti
2011-03-02 21:13 ` Vincent Palatin
2011-03-02 21:23 ` [Qemu-devel] [PATCH] fix offset for MMIO subpage access Vincent Palatin
2011-03-03 9:20 ` Salvatore Lionetti [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=785479.73458.qm@web27208.mail.ukl.yahoo.com \
--to=salvatorelionetti@yahoo.it \
--cc=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=vpalatin@chromium.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).