qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Question about cpu_get_phys_page_debug()


From: Wen Congyang
Subject: [Qemu-devel] Question about cpu_get_phys_page_debug()
Date: Fri, 11 Nov 2011 11:23:57 +0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100413 Fedora/3.0.4-2.fc13 Thunderbird/3.0.4

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]