/[pearpc]/src/cpu/cpu_generic/ppc_opc.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /src/cpu/cpu_generic/ppc_opc.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations)
Wed Sep 5 17:11:21 2007 UTC (16 years, 7 months ago) by dpavlin
File MIME type: text/plain
File size: 1969 byte(s)
import upstream CVS
1 /*
2 * PearPC
3 * ppc_opc.h
4 *
5 * Copyright (C) 2003 Sebastian Biallas (sb@biallas.net)
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
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 Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21 #ifndef __PPC_OPC_H__
22 #define __PPC_OPC_H__
23
24 #include "system/types.h"
25
26 static inline void ppc_update_cr0(uint32 r)
27 {
28 gCPU.cr &= 0x0fffffff;
29 if (!r) {
30 gCPU.cr |= CR_CR0_EQ;
31 } else if (r & 0x80000000) {
32 gCPU.cr |= CR_CR0_LT;
33 } else {
34 gCPU.cr |= CR_CR0_GT;
35 }
36 if (gCPU.xer & XER_SO) gCPU.cr |= CR_CR0_SO;
37 }
38
39 void ppc_opc_bx();
40 void ppc_opc_bcx();
41 void ppc_opc_bcctrx();
42 void ppc_opc_bclrx();
43
44 void ppc_opc_dcba();
45 void ppc_opc_dcbf();
46 void ppc_opc_dcbi();
47 void ppc_opc_dcbst();
48 void ppc_opc_dcbt();
49 void ppc_opc_dcbtst();
50
51 void ppc_opc_eciwx();
52 void ppc_opc_ecowx();
53 void ppc_opc_eieio();
54
55 void ppc_opc_icbi();
56 void ppc_opc_isync();
57
58 void ppc_opc_mcrf();
59 void ppc_opc_mcrfs();
60 void ppc_opc_mcrxr();
61 void ppc_opc_mfcr();
62 void ppc_opc_mffsx();
63 void ppc_opc_mfmsr();
64 void ppc_opc_mfspr();
65 void ppc_opc_mfsr();
66 void ppc_opc_mfsrin();
67 void ppc_opc_mftb();
68 void ppc_opc_mtcrf();
69 void ppc_opc_mtfsb0x();
70 void ppc_opc_mtfsb1x();
71 void ppc_opc_mtfsfx();
72 void ppc_opc_mtfsfix();
73 void ppc_opc_mtmsr();
74 void ppc_opc_mtspr();
75 void ppc_opc_mtsr();
76 void ppc_opc_mtsrin();
77
78 void ppc_opc_rfi();
79 void ppc_opc_sc();
80 void ppc_opc_sync();
81 void ppc_opc_tlbia();
82 void ppc_opc_tlbie();
83 void ppc_opc_tlbsync();
84 void ppc_opc_tw();
85 void ppc_opc_twi();
86
87
88 #endif
89

  ViewVC Help
Powered by ViewVC 1.1.26