Core commit. Compile and run on the OpenPandora
[mupen64plus-pandora.git] / source / mupen64plus-core / src / r4300 / x86 / gtlb.c
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  *   Mupen64plus - gtlb.c                                                  *
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 #include <stdio.h>
23
24 #include "assemble.h"
25
26 #include "r4300/recomph.h"
27 #include "r4300/r4300.h"
28 #include "r4300/ops.h"
29
30 void gentlbwi(void)
31 {
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));
36    call_reg32(EAX);
37    genupdate_system(0);*/
38 }
39
40 void gentlbp(void)
41 {
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));
46    call_reg32(EAX);
47    genupdate_system(0);*/
48 }
49
50 void gentlbr(void)
51 {
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));
56    call_reg32(EAX);
57    genupdate_system(0);*/
58 }
59
60 void generet(void)
61 {
62    gencallinterp((unsigned int)cached_interpreter_table.ERET, 1);
63    /*dst->local_addr = code_length;
64    mov_m32_imm32((void *)(&PC), (unsigned int)(dst));
65    genupdate_system(0);
66    mov_reg32_imm32(EAX, (unsigned int)(ERET));
67    call_reg32(EAX);
68    mov_reg32_imm32(EAX, (unsigned int)(jump_code));
69    jmp_reg32(EAX);*/
70 }
71
72 void gentlbwr(void)
73 {
74    gencallinterp((unsigned int)cached_interpreter_table.TLBWR, 0);
75 }
76