Statistics
| Branch: | Revision:

root / cputlb.h @ 136be99e

History | View | Annotate | Download (1.9 kB)

1 0cac1b66 Blue Swirl
/*
2 0cac1b66 Blue Swirl
 *  Common CPU TLB handling
3 0cac1b66 Blue Swirl
 *
4 0cac1b66 Blue Swirl
 *  Copyright (c) 2003 Fabrice Bellard
5 0cac1b66 Blue Swirl
 *
6 0cac1b66 Blue Swirl
 * This library is free software; you can redistribute it and/or
7 0cac1b66 Blue Swirl
 * modify it under the terms of the GNU Lesser General Public
8 0cac1b66 Blue Swirl
 * License as published by the Free Software Foundation; either
9 0cac1b66 Blue Swirl
 * version 2 of the License, or (at your option) any later version.
10 0cac1b66 Blue Swirl
 *
11 0cac1b66 Blue Swirl
 * This library is distributed in the hope that it will be useful,
12 0cac1b66 Blue Swirl
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 0cac1b66 Blue Swirl
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 0cac1b66 Blue Swirl
 * Lesser General Public License for more details.
15 0cac1b66 Blue Swirl
 *
16 0cac1b66 Blue Swirl
 * You should have received a copy of the GNU Lesser General Public
17 0cac1b66 Blue Swirl
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 0cac1b66 Blue Swirl
 */
19 0cac1b66 Blue Swirl
#ifndef CPUTLB_H
20 0cac1b66 Blue Swirl
#define CPUTLB_H
21 0cac1b66 Blue Swirl
22 0cac1b66 Blue Swirl
#if !defined(CONFIG_USER_ONLY)
23 0cac1b66 Blue Swirl
/* cputlb.c */
24 0cac1b66 Blue Swirl
void tlb_protect_code(ram_addr_t ram_addr);
25 0cac1b66 Blue Swirl
void tlb_unprotect_code_phys(CPUArchState *env, ram_addr_t ram_addr,
26 0cac1b66 Blue Swirl
                             target_ulong vaddr);
27 0cac1b66 Blue Swirl
void tlb_reset_dirty_range(CPUTLBEntry *tlb_entry, uintptr_t start,
28 0cac1b66 Blue Swirl
                           uintptr_t length);
29 0cac1b66 Blue Swirl
MemoryRegionSection *phys_page_find(target_phys_addr_t index);
30 0cac1b66 Blue Swirl
void cpu_tlb_reset_dirty_all(ram_addr_t start1, ram_addr_t length);
31 0cac1b66 Blue Swirl
void tlb_set_dirty(CPUArchState *env, target_ulong vaddr);
32 0cac1b66 Blue Swirl
extern int tlb_flush_count;
33 0cac1b66 Blue Swirl
34 0cac1b66 Blue Swirl
/* exec.c */
35 0cac1b66 Blue Swirl
void tb_flush_jmp_cache(CPUArchState *env, target_ulong addr);
36 0cac1b66 Blue Swirl
target_phys_addr_t memory_region_section_get_iotlb(CPUArchState *env,
37 0cac1b66 Blue Swirl
                                                   MemoryRegionSection *section,
38 0cac1b66 Blue Swirl
                                                   target_ulong vaddr,
39 0cac1b66 Blue Swirl
                                                   target_phys_addr_t paddr,
40 0cac1b66 Blue Swirl
                                                   int prot,
41 0cac1b66 Blue Swirl
                                                   target_ulong *address);
42 0cac1b66 Blue Swirl
bool memory_region_is_unassigned(MemoryRegion *mr);
43 0cac1b66 Blue Swirl
44 0cac1b66 Blue Swirl
#endif
45 0cac1b66 Blue Swirl
#endif