mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-18 05:45:29 -07:00
Move CPU TLB related methods to "exec/cputlb.h". Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-ID: <20241114011310.3615-14-philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
42 lines
1.2 KiB
C
42 lines
1.2 KiB
C
/*
|
|
* Common CPU TLB handling
|
|
*
|
|
* Copyright (c) 2003 Fabrice Bellard
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef CPUTLB_H
|
|
#define CPUTLB_H
|
|
|
|
#include "exec/cpu-common.h"
|
|
|
|
#ifdef CONFIG_TCG
|
|
|
|
#if !defined(CONFIG_USER_ONLY)
|
|
/* cputlb.c */
|
|
void tlb_protect_code(ram_addr_t ram_addr);
|
|
void tlb_unprotect_code(ram_addr_t ram_addr);
|
|
#endif
|
|
|
|
#endif /* CONFIG_TCG */
|
|
|
|
#ifndef CONFIG_USER_ONLY
|
|
|
|
void tlb_reset_dirty(CPUState *cpu, ram_addr_t start1, ram_addr_t length);
|
|
void tlb_reset_dirty_range_all(ram_addr_t start, ram_addr_t length);
|
|
|
|
#endif
|
|
|
|
#endif
|