mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-02 06:32:54 -10:00
Since TARGET_PAGE_MASK is poisoned in target-agnostic code, introduce the qemu_target_page_mask() helper to get this value from target-agnostic code at runtime. Reviewed-by: Thomas Huth <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Alex Bennée <[email protected]>
24 lines
580 B
C
24 lines
580 B
C
/*
|
|
* Target page sizes and friends for non target files
|
|
*
|
|
* Copyright (c) 2017 Red Hat Inc
|
|
*
|
|
* Authors:
|
|
* David Alan Gilbert <[email protected]>
|
|
* Juan Quintela <[email protected]>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef EXEC_TARGET_PAGE_H
|
|
#define EXEC_TARGET_PAGE_H
|
|
|
|
size_t qemu_target_page_size(void);
|
|
int qemu_target_page_mask(void);
|
|
int qemu_target_page_bits(void);
|
|
int qemu_target_page_bits_min(void);
|
|
|
|
size_t qemu_target_pages_to_MiB(size_t pages);
|
|
#endif
|