mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
Define OS-dependent qemu_getpagesize() (Hollis Blanchard)
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5701 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
a672b4693a
commit
15ed71bae2
3 changed files with 15 additions and 10 deletions
11
exec.c
11
exec.c
|
@ -231,16 +231,7 @@ static void page_init(void)
|
|||
{
|
||||
/* NOTE: we can always suppose that qemu_host_page_size >=
|
||||
TARGET_PAGE_SIZE */
|
||||
#ifdef _WIN32
|
||||
{
|
||||
SYSTEM_INFO system_info;
|
||||
|
||||
GetSystemInfo(&system_info);
|
||||
qemu_real_host_page_size = system_info.dwPageSize;
|
||||
}
|
||||
#else
|
||||
qemu_real_host_page_size = getpagesize();
|
||||
#endif
|
||||
qemu_real_host_page_size = qemu_getpagesize();
|
||||
if (qemu_host_page_size == 0)
|
||||
qemu_host_page_size = qemu_real_host_page_size;
|
||||
if (qemu_host_page_size < TARGET_PAGE_SIZE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue