root / include / exec / cputlb.h @ f9ee9f9a
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 | void cpu_tlb_reset_dirty_all(ram_addr_t start1, ram_addr_t length);
|
30 | 0cac1b66 | Blue Swirl | void tlb_set_dirty(CPUArchState *env, target_ulong vaddr);
|
31 | 0cac1b66 | Blue Swirl | extern int tlb_flush_count; |
32 | 0cac1b66 | Blue Swirl | |
33 | 0cac1b66 | Blue Swirl | /* exec.c */
|
34 | 0cac1b66 | Blue Swirl | void tb_flush_jmp_cache(CPUArchState *env, target_ulong addr);
|
35 | 90260c6c | Jan Kiszka | |
36 | 90260c6c | Jan Kiszka | MemoryRegionSection * |
37 | 90260c6c | Jan Kiszka | address_space_translate_for_iotlb(AddressSpace *as, hwaddr addr, hwaddr *xlat, |
38 | 90260c6c | Jan Kiszka | hwaddr *plen); |
39 | a8170e5e | Avi Kivity | hwaddr memory_region_section_get_iotlb(CPUArchState *env, |
40 | 149f54b5 | Paolo Bonzini | MemoryRegionSection *section, |
41 | 149f54b5 | Paolo Bonzini | target_ulong vaddr, |
42 | 149f54b5 | Paolo Bonzini | hwaddr paddr, hwaddr xlat, |
43 | 149f54b5 | Paolo Bonzini | int prot,
|
44 | 149f54b5 | Paolo Bonzini | target_ulong *address); |
45 | 0cac1b66 | Blue Swirl | bool memory_region_is_unassigned(MemoryRegion *mr);
|
46 | 0cac1b66 | Blue Swirl | |
47 | 0cac1b66 | Blue Swirl | #endif
|
48 | 0cac1b66 | Blue Swirl | #endif |