Core commit. Compile and run on the OpenPandora
[mupen64plus-pandora.git] / source / mupen64plus-core / src / r4300 / x86 / regcache.h
CommitLineData
451ab91e 1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2 * Mupen64plus - regcache.h *
3 * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
4 * Copyright (C) 2002 Hacktarux *
5 * *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, write to the *
18 * Free Software Foundation, Inc., *
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
20 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
21
22#ifndef REGCACHE_H
23#define REGCACHE_H
24
25#include "r4300/recomp.h"
26
27void init_cache(precomp_instr* start);
28void free_all_registers(void);
29void free_register(int reg);
30int allocate_register(unsigned int *addr);
31int allocate_64_register1(unsigned int *addr);
32int allocate_64_register2(unsigned int *addr);
33int is64(unsigned int *addr);
34void build_wrappers(precomp_instr*, int, int, precomp_block*);
35int lru_register(void);
36int allocate_register_w(unsigned int *addr);
37int allocate_64_register1_w(unsigned int *addr);
38int allocate_64_register2_w(unsigned int *addr);
39void set_register_state(int reg, unsigned int *addr, int dirty);
40void set_64_register_state(int reg1, int reg2, unsigned int *addr, int dirty);
41void allocate_register_manually(int reg, unsigned int *addr);
42void allocate_register_manually_w(int reg, unsigned int *addr, int load);
43void force_32(int reg);
44int lru_register_exc1(int exc1);
45void simplify_access(void);
46
47#endif // REGCACHE_H
48