]> git.ozlabs.org Git - bitfield/blob - conf/powerpc.conf
8e124cc869c7ebe0f414140ad2c0093930e86241
[bitfield] / conf / powerpc.conf
1 ; Definitions for the PowerPC architecture
2 ;
3 ; Contributors:
4 ;  Michael Neuling <mikey@neuling.org>
5 ;  Jeremy Kerr <jk@ozlabs.org>
6 ;
7 ; Taken from:
8 ;    PowerPC® Microprocessor Family:
9 ;    The Programming Environments Manual for 32 and 64-bit Microprocessors
10 ;    Version 2.3
11 ;    http://www.power.org/resources/downloads/PowerISA_203.Public.pdf
12 ;
13
14 ; Section 2.3.1 Machine State Register (MSR)
15 [MSR_64]
16 name: PowerPC Machine State Register
17 field:  0 64-bit mode (SF)
18 value:          0 32-bit mode
19 value:          1 64-bit mode
20 field:  2 Exception 64-bit mode
21 field:  3 Hypervisor State (HV)
22 field: 45 Power Management Enable (POW)
23 field: 47 Little-Endian Exception Mode (ILE)
24 field: 48 External Interrupt Enable (EE)
25 field: 49 Problem State (PR)
26 value:          0 privileged state
27 value:          1 problem state
28 field: 50 Floating-Point Available (FP)
29 field: 51 Machine Check Interrupt Enable (ME)
30 field: 52,55 Floating-Point Exception Mode (FE)
31 value:          0 ignore exceptions
32 value:          1 imprecise nonrecoverable
33 value:          2 imprecise recoverable
34 value:          3 precise
35 field: 53 Single-Step Trace Enable (SE)
36 field: 54 Branch Trace Enable (BE)
37 field: 58 Instruction Relocate (IR)
38 field: 59 Data Relocate (DR)
39 field: 61 Performance Monitor Mark (PMM)
40 field: 62 Recoverable Interrupt (RI)
41 field: 63 Little-Endian Mode (LE)
42 value:          0 big-endian
43 value:          1 little-endian
44
45 ; Section 8, Instruction slbmte
46 [SLB_E]
47 name: PowerPC SLB ESID Entry
48 field: 0:35  Effective segment ID (ESID)
49 field: 36    Valid (V)
50 field: 52:63 Index
51
52 ; Section 8, Instruction slbmte
53 [SLB_V]
54 name: PowerPC SLB VSID Entry
55 field: 0:1  Segment size selector (B)
56 value:          0 256MB
57 value:          1 1TB
58 value:          2 reserved
59 value:          3 reserved
60 field: 2:51 Virtual segment ID (VSID)
61 field: 52   Supervisor state storage key (Ks)
62 field: 53   Problem state storage key (Kp)
63 field: 55,58,59 Virtual page size selector
64 value:          0 4KB (Unless PTE specifies 64KB) (MPS)
65 value:          5 64KB (Provided PTE specifies 64KB) (MPS)
66 field: 54   No-execute segment (N)
67 field: 56   Class (C)
68 value:          0 big-endian
69 value:          1 little-endian
70
71
72 ; The PowerPC Architecture:
73 ; A Specification For A New Family Of RISC Processors
74 ; Book III PowerPC Operating Environment Architecture
75
76 ; Section 2.2.3 Machine State Register (MSR)
77 [MSR_32]
78 name: PowerPC Machine State Register
79 field: 13 Power Management Enable (POW)
80 field: 15 Little-Endian Exception Mode (ILE)
81 field: 16 External Interrupt Enable (EE)
82 field: 17 Problem State (PR)
83 value:          0 privileged state
84 value:          1 problem state
85 field: 18 Floating-Point Available (FP)
86 field: 19 Machine Check Interrupt Enable (ME)
87 field: 20,23 Floating-Point Exception Mode (FE)
88 value:          0 ignore exceptions
89 value:          1 imprecise nonrecoverable
90 value:          2 imprecise recoverable
91 value:          3 precise
92 field: 21 Single-Step Trace Enable (SE)
93 field: 22 Branch Trace Enable (BE)
94 field: 26 Instruction Relocate (IR)
95 field: 27 Data Relocate (DR)
96 field: 30 Recoverable Interrupt (RI)
97 field: 31 Little-Endian Mode (LE)
98 value:          0 big-endian
99 value:          1 little-endian