Statistics
| Branch: | Revision:

root / translate-all.h @ a2247f8e

History | View | Annotate | Download (1.2 kB)

1 5b6dd868 Blue Swirl
/*
2 5b6dd868 Blue Swirl
 *  Translated block handling
3 5b6dd868 Blue Swirl
 *
4 5b6dd868 Blue Swirl
 *  Copyright (c) 2003 Fabrice Bellard
5 5b6dd868 Blue Swirl
 *
6 5b6dd868 Blue Swirl
 * This library is free software; you can redistribute it and/or
7 5b6dd868 Blue Swirl
 * modify it under the terms of the GNU Lesser General Public
8 5b6dd868 Blue Swirl
 * License as published by the Free Software Foundation; either
9 5b6dd868 Blue Swirl
 * version 2 of the License, or (at your option) any later version.
10 5b6dd868 Blue Swirl
 *
11 5b6dd868 Blue Swirl
 * This library is distributed in the hope that it will be useful,
12 5b6dd868 Blue Swirl
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 5b6dd868 Blue Swirl
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 5b6dd868 Blue Swirl
 * Lesser General Public License for more details.
15 5b6dd868 Blue Swirl
 *
16 5b6dd868 Blue Swirl
 * You should have received a copy of the GNU Lesser General Public
17 5b6dd868 Blue Swirl
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 5b6dd868 Blue Swirl
 */
19 5b6dd868 Blue Swirl
#ifndef TRANSLATE_ALL_H
20 5b6dd868 Blue Swirl
#define TRANSLATE_ALL_H
21 5b6dd868 Blue Swirl
22 5b6dd868 Blue Swirl
/* Size of the L2 (and L3, etc) page tables.  */
23 5b6dd868 Blue Swirl
#define L2_BITS 10
24 5b6dd868 Blue Swirl
#define L2_SIZE (1 << L2_BITS)
25 5b6dd868 Blue Swirl
26 5b6dd868 Blue Swirl
#define P_L2_LEVELS \
27 5b6dd868 Blue Swirl
    (((TARGET_PHYS_ADDR_SPACE_BITS - TARGET_PAGE_BITS - 1) / L2_BITS) + 1)
28 5b6dd868 Blue Swirl
29 5b6dd868 Blue Swirl
/* translate-all.c */
30 5b6dd868 Blue Swirl
void tb_invalidate_phys_page_fast(tb_page_addr_t start, int len);
31 907a5e32 Andreas Färber
void cpu_unlink_tb(CPUState *cpu);
32 5b6dd868 Blue Swirl
void tb_check_watchpoint(CPUArchState *env);
33 5b6dd868 Blue Swirl
34 5b6dd868 Blue Swirl
#endif /* TRANSLATE_ALL_H */