1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2 * Mupen64plus - gtlb.c *
3 * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
4 * Copyright (C) 2002 Hacktarux *
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. *
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. *
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 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
26 #include "r4300/recomph.h"
27 #include "r4300/r4300.h"
28 #include "r4300/ops.h"
32 gencallinterp((unsigned int)cached_interpreter_table.TLBWI, 0);
33 /*dst->local_addr = code_length;
34 mov_m32_imm32((void *)(&PC), (unsigned int)(dst));
35 mov_reg32_imm32(EAX, (unsigned int)(TLBWI));
37 genupdate_system(0);*/
42 gencallinterp((unsigned int)cached_interpreter_table.TLBP, 0);
43 /*dst->local_addr = code_length;
44 mov_m32_imm32((void *)(&PC), (unsigned int)(dst));
45 mov_reg32_imm32(EAX, (unsigned int)(TLBP));
47 genupdate_system(0);*/
52 gencallinterp((unsigned int)cached_interpreter_table.TLBR, 0);
53 /*dst->local_addr = code_length;
54 mov_m32_imm32((void *)(&PC), (unsigned int)(dst));
55 mov_reg32_imm32(EAX, (unsigned int)(TLBR));
57 genupdate_system(0);*/
62 gencallinterp((unsigned int)cached_interpreter_table.ERET, 1);
63 /*dst->local_addr = code_length;
64 mov_m32_imm32((void *)(&PC), (unsigned int)(dst));
66 mov_reg32_imm32(EAX, (unsigned int)(ERET));
68 mov_reg32_imm32(EAX, (unsigned int)(jump_code));
74 gencallinterp((unsigned int)cached_interpreter_table.TLBWR, 0);