Both tlb_protect() and tlb_unprotect_code() are only used within accel/tcg/. Avoid exposing them to the whole code base, declare them in a new "system-page-protection.h" local header (maintaining the previous LGPL-2.1-or-later license). Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Chao Liu <chao.liu.zevorn@gmail.com> Message-ID: <20260705215729.62196-4-philmd@oss.qualcomm.com>
18 lines
337 B
C
18 lines
337 B
C
/*
|
|
* QEMU page protection (system emulation)
|
|
*
|
|
* Copyright (c) 2003 Fabrice Bellard
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
*/
|
|
#ifndef SYSTEM_PAGE_PROTECTION_H
|
|
#define SYSTEM_PAGE_PROTECTION_H
|
|
|
|
#include "system/ram_addr.h"
|
|
|
|
void tlb_protect_code(ram_addr_t ram_addr);
|
|
void tlb_unprotect_code(ram_addr_t ram_addr);
|
|
|
|
#endif
|
|
|