From: Paul Brook <paul@codesourcery.com>
To: takasi-y@ops.dti.ne.jp
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] MMIO address changes
Date: Tue, 2 Dec 2008 17:09:41 +0000 [thread overview]
Message-ID: <200812021709.41736.paul@codesourcery.com> (raw)
In-Reply-To: <200812021647.mB2Gldoe003402@smtp11.dti.ne.jp>
> diff --git a/exec.c b/exec.c
> --- a/exec.c
> +++ b/exec.c
> @@ -2295,6 +2295,7 @@ void
> cpu_register_physical_memory_offset(target_phys_addr_ t start_addr,
> p->region_offset = 0;
> } else {
> p->phys_offset = phys_offset;
> + p->region_offset = region_offset;
> if ((phys_offset & ~TARGET_PAGE_MASK) <= IO_MEM_ROM ||
> (phys_offset & IO_MEM_ROMD))
> phys_offset += TARGET_PAGE_SIZE;
I guess this makes sense, however..
> You can see the difference when you register a region overriding
> other(perhaps bigger) region.
>
> hw/sh7750.c hits this by registering
> 0xfc000000 .. 0xffffffff for CPU control registers,
> then
> 0xffe00000 .. 0xffe00028
> 0xffe80000 .. 0xffe80028
> 0xffd00000 .. 0xffd01000
> 0xffd80000 .. 0xffd81000
> ...
You should not rely on overlapping regions doing anything sensible.
Paul
next prev parent reply other threads:[~2008-12-02 17:10 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-01 18:59 [Qemu-devel] MMIO address changes Paul Brook
2008-12-02 16:47 ` takasi-y
2008-12-02 17:09 ` Paul Brook [this message]
2008-12-02 17:10 ` Paul Brook
2008-12-03 14:37 ` [Qemu-devel] [PATCH] sh4: Followup to commit #5849 "Change MMIO callbacks..." takasi-y
2008-12-10 17:44 ` [Qemu-devel] " Vladimir Prus
2008-12-14 16:54 ` takasi-y
2008-12-03 12:17 ` [Qemu-devel] MMIO address changes Edgar E. Iglesias
2008-12-03 14:03 ` Paul Brook
2008-12-07 20:24 ` Edgar E. Iglesias
2009-01-07 15:39 ` Edgar E. Iglesias
2008-12-05 13:52 ` [Qemu-devel] [PATCH] usb-ohci: Add address masking takasi-y
2008-12-07 16:05 ` andrzej zaborowski
2008-12-08 13:04 ` Paul Brook
2008-12-08 10:15 ` Thomas Bandelier
2008-12-09 15:21 ` takasi-y
2008-12-11 8:55 ` [Qemu-devel] Re: MMIO address changes Vladimir Prus
2008-12-25 22:33 ` andrzej zaborowski
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=200812021709.41736.paul@codesourcery.com \
--to=paul@codesourcery.com \
--cc=qemu-devel@nongnu.org \
--cc=takasi-y@ops.dti.ne.jp \
/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).