mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-25 01:38:17 +00:00
576f1752a6
Move the architecture agnostic function prototypes for exec.c out of cputlb.h to exec-all.h. This allows hiding of the arch specific cputlb.h from exec.c which should be getting close to having no architecture specifics. Prepares support for multi-arch, which will have a minimal cpu.h that services exec.c but not cputlb.h. Backports commit dfccc7602374c9fd3b083208b552d62daa244811 from qemu
31 lines
1.1 KiB
C
31 lines
1.1 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 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
|
|
|
|
#if !defined(CONFIG_USER_ONLY)
|
|
/* cputlb.c */
|
|
void tlb_protect_code(struct uc_struct *uc, ram_addr_t ram_addr);
|
|
void tlb_unprotect_code(CPUState *cpu, ram_addr_t ram_addr);
|
|
void tlb_reset_dirty_range(CPUTLBEntry *tlb_entry,
|
|
uintptr_t start, uintptr_t length);
|
|
//extern int tlb_flush_count;
|
|
|
|
#endif
|
|
#endif
|