mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00

Move declarations related to page protection under user emulation from "exec/cpu-all.h" to "user/page-protection.h". Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20241212185341.2857-12-philmd@linaro.org>
28 lines
693 B
C
28 lines
693 B
C
/*
|
|
* QEMU page protection declarations.
|
|
*
|
|
* Copyright (c) 2003 Fabrice Bellard
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
#ifndef USER_PAGE_PROTECTION_H
|
|
#define USER_PAGE_PROTECTION_H
|
|
|
|
#ifndef CONFIG_USER_ONLY
|
|
#error Cannot include this header from system emulation
|
|
#endif
|
|
|
|
#include "cpu-param.h"
|
|
#include "exec/target_long.h"
|
|
#include "exec/translation-block.h"
|
|
|
|
void page_protect(tb_page_addr_t page_addr);
|
|
int page_unprotect(tb_page_addr_t address, uintptr_t pc);
|
|
typedef int (*walk_memory_regions_fn)(void *, target_ulong,
|
|
target_ulong, unsigned long);
|
|
|
|
int walk_memory_regions(void *, walk_memory_regions_fn);
|
|
|
|
void page_dump(FILE *f);
|
|
|
|
#endif
|