* [Qemu-devel] Question about cpu_get_phys_page_debug()
@ 2011-11-11 3:23 Wen Congyang
0 siblings, 0 replies; only message in thread
From: Wen Congyang @ 2011-11-11 3:23 UTC (permalink / raw)
To: qemu-devel
In the function cpu_get_phys_page_debug()(In the file target-i386/helper.c):
I find the following codes:
====================
page_offset = (addr & TARGET_PAGE_MASK) & (page_size - 1);
paddr = (pte & TARGET_PAGE_MASK) + page_offset;
====================
The page_offset is always 4K aligned.
I think the offset should be the offset in the page, so it should
not be aligned.
Who can tell me the reason?
Thanks
Wen Congyang
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-11 3:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-11 3:23 [Qemu-devel] Question about cpu_get_phys_page_debug() Wen Congyang
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.