1 | OBJECT cpu0 TYPE mips-4kc {
|
---|
2 | freq-mhz: 10
|
---|
3 | queue: cpu0
|
---|
4 | physical-memory: phys-mem0
|
---|
5 | }
|
---|
6 |
|
---|
7 | OBJECT phys-mem0 TYPE memory-space {
|
---|
8 | map: ((0x18000020, pic0, 0, 0x20, 1),
|
---|
9 | (0x18000021, pic0, 0, 0x21, 1),
|
---|
10 | (0x180000a0, pic0, 0, 0xa0, 1),
|
---|
11 | (0x180000a1, pic0, 0, 0xa1, 1),
|
---|
12 | (0x180004d0, pic0, 0, 0x4d0, 1),
|
---|
13 | (0x180004d1, pic0, 0, 0x4d1, 1),
|
---|
14 | (0x18000070, rtc0, 0, 0, 1),
|
---|
15 | (0x18000071, rtc0, 0, 1, 1),
|
---|
16 | (0x180003f8, tty0, 0, 0, 1),
|
---|
17 | (0x180003f9, tty0, 0, 1, 1),
|
---|
18 | (0x180003fa, tty0, 0, 2, 1),
|
---|
19 | (0x180003fb, tty0, 0, 3, 1),
|
---|
20 | (0x180003fc, tty0, 0, 4, 1),
|
---|
21 | (0x180003fd, tty0, 0, 5, 1),
|
---|
22 | (0x180003fe, tty0, 0, 6, 1),
|
---|
23 | (0x180003ff, tty0, 0, 7, 1),
|
---|
24 | (0x1c000000, hfs0, 0, 0, 16))
|
---|
25 | }
|
---|
26 |
|
---|
27 | OBJECT cbus-space TYPE memory-space {
|
---|
28 | map: ((0x1f000000, malta0, 0, 0, 0xc00000),
|
---|
29 | (0x1fc00000, rom0, 0, 0, 0x400000))
|
---|
30 | }
|
---|
31 |
|
---|
32 | OBJECT memory0 TYPE ram {
|
---|
33 | image: memory0-image
|
---|
34 | }
|
---|
35 | OBJECT memory0-image TYPE image {
|
---|
36 | queue: cpu0
|
---|
37 | size: 0x08000000
|
---|
38 | }
|
---|
39 | OBJECT rom0 TYPE rom {
|
---|
40 | image: rom0-image
|
---|
41 | }
|
---|
42 | OBJECT rom0-image TYPE image {
|
---|
43 | queue: cpu0
|
---|
44 | size: 0x00400000
|
---|
45 | }
|
---|
46 |
|
---|
47 | OBJECT tty0 TYPE NS16550 {
|
---|
48 | irq-dev: pic0
|
---|
49 | irq-level: 4
|
---|
50 | queue: cpu0
|
---|
51 | console: con0
|
---|
52 | recorder: rec0
|
---|
53 | }
|
---|
54 |
|
---|
55 | OBJECT pic0 TYPE i8259x2 {
|
---|
56 | queue: cpu0
|
---|
57 | irq-dev: gt64120-0
|
---|
58 | # It seems like Linux expects the master 8259 to have VBA 0.
|
---|
59 | # Maybe that would be set up by YAMON?
|
---|
60 | vba: (0, 1)
|
---|
61 | }
|
---|
62 |
|
---|
63 | OBJECT con0 TYPE xterm-console {
|
---|
64 | title: "mips32-test-machine"
|
---|
65 | bg-color: "black"
|
---|
66 | fg-color: "green"
|
---|
67 | queue: cpu0
|
---|
68 | device: tty0
|
---|
69 | output-timeout: 120
|
---|
70 | }
|
---|
71 |
|
---|
72 | OBJECT rtc0 TYPE DS12887 {
|
---|
73 | irq-dev: pic0
|
---|
74 | irq-level: 8
|
---|
75 | queue: cpu0
|
---|
76 | }
|
---|
77 |
|
---|
78 | OBJECT malta0 TYPE malta {
|
---|
79 | console: display0
|
---|
80 | }
|
---|
81 |
|
---|
82 | OBJECT display0 TYPE xterm-console {
|
---|
83 | title: "MALTA Display"
|
---|
84 | bg-color: "black"
|
---|
85 | fg-color: "red"
|
---|
86 | width: 8
|
---|
87 | height: 1
|
---|
88 | scrollbar: 0
|
---|
89 | x11-font: "-*-*-*-r-*-*-*-240-*-*-m-*-*-*"
|
---|
90 | win32-font: "Lucida Console:Bold:48"
|
---|
91 | queue: cpu0
|
---|
92 | output-timeout: 120
|
---|
93 | }
|
---|
94 |
|
---|
95 | # PCI buses
|
---|
96 | OBJECT pci-bus0 TYPE pci-bus {
|
---|
97 | queue: cpu0
|
---|
98 | bridge: gt64120-0-pci-0-0
|
---|
99 | interrupt: gt64120-0-pci-0-0
|
---|
100 | conf-space: pci-bus0-conf-space
|
---|
101 | memory-space: pci-bus0-memory-space
|
---|
102 | io-space: pci-bus0-io-space
|
---|
103 |
|
---|
104 | pci-devices: ((0, 0, gt64120-0-pci-0-0),
|
---|
105 | (0, 1, gt64120-0-pci-0-1))
|
---|
106 | }
|
---|
107 |
|
---|
108 | OBJECT pci-bus0-conf-space TYPE memory-space {
|
---|
109 | queue: cpu0
|
---|
110 | }
|
---|
111 |
|
---|
112 | OBJECT pci-bus1-conf-space TYPE memory-space {
|
---|
113 | queue: cpu0
|
---|
114 | }
|
---|
115 |
|
---|
116 | OBJECT pci-bus0-memory-space TYPE memory-space {
|
---|
117 | queue: cpu0
|
---|
118 | }
|
---|
119 |
|
---|
120 | OBJECT pci-bus1 TYPE pci-bus {
|
---|
121 | queue: cpu0
|
---|
122 | bridge: gt64120-0-pci-1-0
|
---|
123 | interrupt: gt64120-0-pci-1-0
|
---|
124 | conf-space: pci-bus1-conf-space
|
---|
125 | memory-space: pci-bus1-memory-space
|
---|
126 | io-space: pci-bus1-io-space
|
---|
127 |
|
---|
128 | pci-devices: ((0, 0, gt64120-0-pci-1-0),
|
---|
129 | (0, 1, gt64120-0-pci-1-1))
|
---|
130 | }
|
---|
131 |
|
---|
132 | OBJECT pci-bus1-memory-space TYPE memory-space {
|
---|
133 | queue: cpu0
|
---|
134 | }
|
---|
135 |
|
---|
136 | OBJECT pci-bus0-io-space TYPE memory-space {
|
---|
137 | queue: cpu0
|
---|
138 | }
|
---|
139 |
|
---|
140 | OBJECT pci-bus1-io-space TYPE memory-space {
|
---|
141 | queue: cpu0
|
---|
142 | }
|
---|
143 |
|
---|
144 | # GT64120 chipset
|
---|
145 | OBJECT gt64120-0 TYPE GT64120 {
|
---|
146 | queue: cpu0
|
---|
147 | cpu-mem: phys-mem0
|
---|
148 |
|
---|
149 | pci-0-0: gt64120-0-pci-0-0
|
---|
150 | pci-0-1: gt64120-0-pci-0-1
|
---|
151 | pci-1-0: gt64120-0-pci-1-0
|
---|
152 | pci-1-1: gt64120-0-pci-1-1
|
---|
153 |
|
---|
154 | scs0: memory0
|
---|
155 | cs3: cbus-space
|
---|
156 | bootcs: cbus-space
|
---|
157 | pci-0-conf: pci-bus0-conf-space
|
---|
158 | pci-0-io: pci-bus0-io-space
|
---|
159 | pci-0-memory: pci-bus0-memory-space
|
---|
160 | pci-1-conf: pci-bus1-conf-space
|
---|
161 | pci-1-io: pci-bus1-io-space
|
---|
162 | pci-1-memory: pci-bus1-memory-space
|
---|
163 |
|
---|
164 | irq-dev: cpu0
|
---|
165 | irq-level: 2
|
---|
166 |
|
---|
167 | # Little endian
|
---|
168 | cpu_interface_configuration: 0x00041000
|
---|
169 |
|
---|
170 | # Map 128MB RAM.
|
---|
171 | scs10-high-decode-address: 0x40
|
---|
172 | scs0-low-decode-address: 0x0
|
---|
173 | scs0-high-decode-address: 0x7f
|
---|
174 |
|
---|
175 | # Map the internal registers at 0x1be00000.
|
---|
176 | internal-space-decode: 0xdf
|
---|
177 |
|
---|
178 | # Disable host-PCI mappings
|
---|
179 | pci-0-io-high-decode-address: 0
|
---|
180 | pci-0-io-low-decode-address: 1
|
---|
181 | pci-0-io-remap: 1
|
---|
182 | pci-0-memory-0-high-decode-address: 0
|
---|
183 | pci-0-memory-0-low-decode-address: 1
|
---|
184 | pci-0-memory-0-remap: 1
|
---|
185 | pci-0-memory-1-high-decode-address: 0
|
---|
186 | pci-0-memory-1-low-decode-address: 1
|
---|
187 | pci-0-memory-1-remap: 1
|
---|
188 | pci-1-io-high-decode-address: 0
|
---|
189 | pci-1-io-low-decode-address: 1
|
---|
190 | pci-1-io-remap: 1
|
---|
191 | pci-1-memory-0-high-decode-address: 0
|
---|
192 | pci-1-memory-0-low-decode-address: 1
|
---|
193 | pci-1-memory-0-remap: 1
|
---|
194 | pci-1-memory-1-high-decode-address: 0
|
---|
195 | pci-1-memory-1-low-decode-address: 1
|
---|
196 | pci-1-memory-1-remap: 1
|
---|
197 |
|
---|
198 | # Disable PCI-host mappings
|
---|
199 | pci-0-base-address-registers-enable: 0x1ff
|
---|
200 | pci-1-base-address-registers-enable: 0x1ff
|
---|
201 | }
|
---|
202 |
|
---|
203 | OBJECT gt64120-0-pci-0-0 TYPE GT64120-pci {
|
---|
204 | queue: cpu0
|
---|
205 |
|
---|
206 | gt64120: gt64120-0
|
---|
207 | bridge-num: 0
|
---|
208 | function-num: 0
|
---|
209 |
|
---|
210 | pci-bus: pci-bus0
|
---|
211 | }
|
---|
212 |
|
---|
213 | OBJECT gt64120-0-pci-0-1 TYPE GT64120-pci {
|
---|
214 | queue: cpu0
|
---|
215 |
|
---|
216 | gt64120: gt64120-0
|
---|
217 | bridge-num: 0
|
---|
218 | function-num: 1
|
---|
219 |
|
---|
220 | pci-bus: pci-bus0
|
---|
221 | }
|
---|
222 |
|
---|
223 | OBJECT gt64120-0-pci-1-0 TYPE GT64120-pci {
|
---|
224 | queue: cpu0
|
---|
225 |
|
---|
226 | gt64120: gt64120-0
|
---|
227 | bridge-num: 1
|
---|
228 | function-num: 0
|
---|
229 |
|
---|
230 | pci-bus: pci-bus1
|
---|
231 | }
|
---|
232 |
|
---|
233 | OBJECT gt64120-0-pci-1-1 TYPE GT64120-pci {
|
---|
234 | queue: cpu0
|
---|
235 |
|
---|
236 | gt64120: gt64120-0
|
---|
237 | bridge-num: 1
|
---|
238 | function-num: 1
|
---|
239 |
|
---|
240 | pci-bus: pci-bus1
|
---|
241 | }
|
---|
242 |
|
---|
243 | # Various
|
---|
244 | OBJECT rec0 TYPE recorder {
|
---|
245 | }
|
---|
246 |
|
---|
247 | OBJECT hfs0 TYPE hostfs {
|
---|
248 | }
|
---|
249 |
|
---|
250 | OBJECT sim TYPE sim {
|
---|
251 | handle-outside-memory: 1
|
---|
252 | }
|
---|