b3b408ffb9
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 <thuth@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230524093744.88442-2-philmd@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
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 <dgilbert@redhat.com>
|
|
* Juan Quintela <quintela@redhat.com>
|
|
*
|
|
* 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
|