RetroArch
context.h
Go to the documentation of this file.
1 #ifndef __EXCONTEXT_H__
2 #define __EXCONTEXT_H__
3 
4 #define NUM_EXCEPTIONS 15
5 
6 #define EX_SYS_RESET 0
7 #define EX_MACH_CHECK 1
8 #define EX_DSI 2
9 #define EX_ISI 3
10 #define EX_INT 4
11 #define EX_ALIGN 5
12 #define EX_PRG 6
13 #define EX_FP 7
14 #define EX_DEC 8
15 #define EX_SYS_CALL 9
16 #define EX_TRACE 10
17 #define EX_PERF 11
18 #define EX_IABR 12
19 #define EX_RESV 13
20 #define EX_THERM 14
21 
22 #ifndef _LANGUAGE_ASSEMBLY
23 
24 #include <gctypes.h>
25 
26 #ifdef __cplusplus
27  extern "C" {
28 #endif /* __cplusplus */
29 
30 typedef struct _excption_frame {
33  u32 GPR[32];
34  u32 GQR[8];
35  u32 CR, LR, CTR, XER, MSR, DAR;
36 
37  u16 state; //used to determine whether to restore the fpu context or not
38  u16 mode; //unused
39 
40  f64 FPR[32];
42  f64 PSFPR[32];
44 
45 #ifdef __cplusplus
46  }
47 #endif /* __cplusplus */
48 
49 #endif
50 
51 #endif
u64 FPSCR
Definition: context.h:41
u32 GQR[8]
Definition: context.h:34
u32 EXCPT_Number
Definition: context.h:31
Definition: context.h:30
Data type definitions.
u32 SRR0
Definition: context.h:32
u32 SRR1
Definition: context.h:32
u32 XER
Definition: context.h:35
u32 CR
Definition: context.h:35
u32 GPR[32]
Definition: context.h:33
u16 mode
Definition: context.h:38
f64 PSFPR[32]
Definition: context.h:42
u32 MSR
Definition: context.h:35
double f64
Definition: gctypes.h:44
uint16_t u16
16bit unsigned integer
Definition: gctypes.h:18
u32 CTR
Definition: context.h:35
u32 LR
Definition: context.h:35
f64 FPR[32]
Definition: context.h:40
uint64_t u64
64bit unsigned integer
Definition: gctypes.h:20
u32 DAR
Definition: context.h:35
u16 state
Definition: context.h:37
struct _excption_frame frame_context
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19