From: Leon Alrae <leon.alrae@imgtec.com>
To: Igor R <boost.lists@gmail.com>, QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Memory mapping on MIPS
Date: Mon, 22 Feb 2016 10:35:22 +0000 [thread overview]
Message-ID: <56CAE46A.2050707@imgtec.com> (raw)
In-Reply-To: <CAPnv1PKxnmysis8DkM5_rqxiCtpKa-A-PjTsO5j2UOpXwVruEA@mail.gmail.com>
On 22/02/16 06:56, Igor R wrote:
> Here is an excerpt from r4k_map_address(), related to addresses >= 0x80000000.
> Actually, it maps 0x80000010 and 0xA0000010 to the same physical
> address. What's the idea behind that?
0x80000010 is kseg0 whereas 0xA0000010 is kseg1, both segments are
unmapped thus both refer to the same 0x10 physical address. The
difference between them is that the latter is uncached, i.e. all
accesses to this segment bypass the caches, but in QEMU we don't model
caches so they do the same thing.
> What should happen if I map KSEG2 directly as a continuation of KSEG1,
> i.e. substitute TLB lookup with "address - (int32_t)KSEG1_BASE"? Guest
> Linux seems to work correctly (but maybe it's just a matter of luck?).
With such a change it's very likely that guest through kseg2 will be
accessing different physical addresses than it expects...
Regards,
Leon
next prev parent reply other threads:[~2016-02-22 10:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-22 6:56 [Qemu-devel] Memory mapping on MIPS Igor R
2016-02-22 10:35 ` Leon Alrae [this message]
2016-02-22 12:01 ` Igor R
2016-02-22 12:01 ` Igor R
2016-02-22 15:53 ` Maciej W. Rozycki
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=56CAE46A.2050707@imgtec.com \
--to=leon.alrae@imgtec.com \
--cc=boost.lists@gmail.com \
--cc=qemu-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.