/[pearpc]/src/cpu/cpu_jitc_x86/ppc_exc.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

Annotation of /src/cpu/cpu_jitc_x86/ppc_exc.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (hide annotations)
Wed Sep 5 17:11:21 2007 UTC (16 years, 6 months ago) by dpavlin
File MIME type: text/plain
File size: 2074 byte(s)
import upstream CVS
1 dpavlin 1 /*
2     * PearPC
3     * ppc_exc.h
4     *
5     * Copyright (C) 2003 Sebastian Biallas (sb@biallas.net)
6     * Copyright (C) 2004 Daniel Foesch (dfoesch@cs.nmsu.edu)
7     *
8     * This program is free software; you can redistribute it and/or modify
9     * it under the terms of the GNU General Public License version 2 as
10     * published by the Free Software Foundation.
11     *
12     * This program is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with this program; if not, write to the Free Software
19     * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20     */
21    
22     #ifndef __PPC_EXC_H__
23     #define __PPC_EXC_H__
24    
25     #include "system/types.h"
26    
27     /*
28     * .250
29     */
30     #define PPC_EXC_UNKNOWN 0
31     #define PPC_EXC_SYS_RESET 0x100
32     #define PPC_EXC_MACHINE_CHECK 0x00200
33     #define PPC_EXC_DSI 0x00300
34     #define PPC_EXC_ISI 0x00400
35     #define PPC_EXC_EXT_INT 0x00500
36     #define PPC_EXC_ALIGNMENT 0x00600
37     #define PPC_EXC_PROGRAM 0x00700
38     #define PPC_EXC_NO_FPU 0x00800
39     #define PPC_EXC_DEC 0x00900
40     //Reserved 0x00A00
41     //Reserved 0x00B00
42     #define PPC_EXC_SC 0x00C00
43     #define PPC_EXC_TRACE2 0x00D00
44     #define PPC_EXC_FLOAT_ASSIST 0x00E00
45     #define PPC_EXC_PERF_MON 0xF00
46     #define PPC_EXC_NO_VEC 0xF20
47     #define PPC_EXC_ALTIVEC 0xF20
48     #define PPC_EXC_ALTIVEC_ASSIST 0x1600
49     #define PPC_EXC_TAU 0x1700
50    
51     #define PPC_EXC_DSISR_PAGE (1<<30)
52     #define PPC_EXC_DSISR_PROT (1<<27)
53     #define PPC_EXC_DSISR_STORE (1<<25)
54    
55     #define PPC_EXC_SRR1_PAGE PPC_EXC_DSISR_PAGE
56     #define PPC_EXC_SRR1_GUARD (1<<28)
57     #define PPC_EXC_SRR1_PROT PPC_EXC_DSISR_PROT
58    
59     #define PPC_EXC_PROGRAM_FLOAT (1<<20)
60     #define PPC_EXC_PROGRAM_ILL (1<<19)
61     #define PPC_EXC_PROGRAM_PRIV (1<<18)
62     #define PPC_EXC_PROGRAM_TRAP (1<<17)
63    
64     /*
65     * set if srr0 does not not contain the address of the intruction
66     * causing the exception
67     */
68     #define PPC_EXC_PROGRAM_NEXT (1<<16)
69    
70     bool FASTCALL ppc_exception(uint32 type=0, uint32 flags=0, uint32 a=0);
71    
72     #endif
73    

  ViewVC Help
Powered by ViewVC 1.1.26