diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-05-14 17:43:21 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-06-19 18:44:19 +0300 |
commit | 38183310be7af6af5ee60e7c9e9647133a7d11c3 (patch) | |
tree | 5b43582a4745b4c604c1366c1f3d47d5aadc0f70 /translate-all.c | |
parent | e1c57ab86f3c4ea6532b51cfecf32770b45f5e7a (diff) | |
download | qemu-38183310be7af6af5ee60e7c9e9647133a7d11c3.zip qemu-38183310be7af6af5ee60e7c9e9647133a7d11c3.tar.gz qemu-38183310be7af6af5ee60e7c9e9647133a7d11c3.tar.bz2 |
memory: move preallocation code out of exec.c
So that backends can use it.
Since we need the page size for efficiency, move code to compute it
out of translate-all.c and into util/oslib-win32.c.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'translate-all.c')
-rw-r--r-- | translate-all.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/translate-all.c b/translate-all.c index 6b7b46e..5425d03 100644 --- a/translate-all.c +++ b/translate-all.c @@ -295,14 +295,7 @@ void page_size_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 if (qemu_host_page_size == 0) { qemu_host_page_size = qemu_real_host_page_size; } |