1 /*
2  * Copyright 2018 Advanced Micro Devices, Inc.
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20  * OTHER DEALINGS IN THE SOFTWARE.
21  */
22 
23 static const uint32_t cwsr_trap_gfx8_hex[] = {
24 	0xbf820001, 0xbf820121,
25 	0xb8f4f802, 0x89748674,
26 	0xb8f5f803, 0x8675ff75,
27 	0x00000400, 0xbf850017,
28 	0xc00a1e37, 0x00000000,
29 	0xbf8c007f, 0x87777978,
30 	0xbf840005, 0x8f728374,
31 	0xb972e0c2, 0xbf800002,
32 	0xb9740002, 0xbe801d78,
33 	0xb8f5f803, 0x8675ff75,
34 	0x000001ff, 0xbf850002,
35 	0x80708470, 0x82718071,
36 	0x8671ff71, 0x0000ffff,
37 	0x8f728374, 0xb972e0c2,
38 	0xbf800002, 0xb9740002,
39 	0xbe801f70, 0xbefa0080,
40 	0xb97a0283, 0xbef60068,
41 	0xbef70069, 0xb8fa1c07,
42 	0x8e7a9c7a, 0x87717a71,
43 	0xb8fa03c7, 0x8e7a9b7a,
44 	0x87717a71, 0xb8faf807,
45 	0x867aff7a, 0x00007fff,
46 	0xb97af807, 0xbef2007e,
47 	0xbef3007f, 0xbefe0180,
48 	0xbf900004, 0x877a8474,
49 	0xb97af802, 0xbf8e0002,
50 	0xbf88fffe, 0xbef8007e,
51 	0x8679ff7f, 0x0000ffff,
52 	0x8779ff79, 0x00040000,
53 	0xbefa0080, 0xbefb00ff,
54 	0x00807fac, 0x867aff7f,
55 	0x08000000, 0x8f7a837a,
56 	0x877b7a7b, 0x867aff7f,
57 	0x70000000, 0x8f7a817a,
58 	0x877b7a7b, 0xbeef007c,
59 	0xbeee0080, 0xb8ee2a05,
60 	0x806e816e, 0x8e6e8a6e,
61 	0xb8fa1605, 0x807a817a,
62 	0x8e7a867a, 0x806e7a6e,
63 	0xbefa0084, 0xbefa00ff,
64 	0x01000000, 0xbefe007c,
65 	0xbefc006e, 0xc0611bfc,
66 	0x0000007c, 0x806e846e,
67 	0xbefc007e, 0xbefe007c,
68 	0xbefc006e, 0xc0611c3c,
69 	0x0000007c, 0x806e846e,
70 	0xbefc007e, 0xbefe007c,
71 	0xbefc006e, 0xc0611c7c,
72 	0x0000007c, 0x806e846e,
73 	0xbefc007e, 0xbefe007c,
74 	0xbefc006e, 0xc0611cbc,
75 	0x0000007c, 0x806e846e,
76 	0xbefc007e, 0xbefe007c,
77 	0xbefc006e, 0xc0611cfc,
78 	0x0000007c, 0x806e846e,
79 	0xbefc007e, 0xbefe007c,
80 	0xbefc006e, 0xc0611d3c,
81 	0x0000007c, 0x806e846e,
82 	0xbefc007e, 0xb8f5f803,
83 	0xbefe007c, 0xbefc006e,
84 	0xc0611d7c, 0x0000007c,
85 	0x806e846e, 0xbefc007e,
86 	0xbefe007c, 0xbefc006e,
87 	0xc0611dbc, 0x0000007c,
88 	0x806e846e, 0xbefc007e,
89 	0xbefe007c, 0xbefc006e,
90 	0xc0611dfc, 0x0000007c,
91 	0x806e846e, 0xbefc007e,
92 	0xb8eff801, 0xbefe007c,
93 	0xbefc006e, 0xc0611bfc,
94 	0x0000007c, 0x806e846e,
95 	0xbefc007e, 0xbefe007c,
96 	0xbefc006e, 0xc0611b3c,
97 	0x0000007c, 0x806e846e,
98 	0xbefc007e, 0xbefe007c,
99 	0xbefc006e, 0xc0611b7c,
100 	0x0000007c, 0x806e846e,
101 	0xbefc007e, 0x867aff7f,
102 	0x04000000, 0xbef30080,
103 	0x8773737a, 0xb8ee2a05,
104 	0x806e816e, 0x8e6e8a6e,
105 	0xb8f51605, 0x80758175,
106 	0x8e758475, 0x8e7a8275,
107 	0xbefa00ff, 0x01000000,
108 	0xbef60178, 0x80786e78,
109 	0x82798079, 0xbefc0080,
110 	0xbe802b00, 0xbe822b02,
111 	0xbe842b04, 0xbe862b06,
112 	0xbe882b08, 0xbe8a2b0a,
113 	0xbe8c2b0c, 0xbe8e2b0e,
114 	0xc06b003c, 0x00000000,
115 	0xc06b013c, 0x00000010,
116 	0xc06b023c, 0x00000020,
117 	0xc06b033c, 0x00000030,
118 	0x8078c078, 0x82798079,
119 	0x807c907c, 0xbf0a757c,
120 	0xbf85ffeb, 0xbef80176,
121 	0xbeee0080, 0xbefe00c1,
122 	0xbeff00c1, 0xbefa00ff,
123 	0x01000000, 0xe0724000,
124 	0x6e1e0000, 0xe0724100,
125 	0x6e1e0100, 0xe0724200,
126 	0x6e1e0200, 0xe0724300,
127 	0x6e1e0300, 0xbefe00c1,
128 	0xbeff00c1, 0xb8f54306,
129 	0x8675c175, 0xbf84002c,
130 	0xbf8a0000, 0x867aff73,
131 	0x04000000, 0xbf840028,
132 	0x8e758675, 0x8e758275,
133 	0xbefa0075, 0xb8ee2a05,
134 	0x806e816e, 0x8e6e8a6e,
135 	0xb8fa1605, 0x807a817a,
136 	0x8e7a867a, 0x806e7a6e,
137 	0x806eff6e, 0x00000080,
138 	0xbefa00ff, 0x01000000,
139 	0xbefc0080, 0xd28c0002,
140 	0x000100c1, 0xd28d0003,
141 	0x000204c1, 0xd1060002,
142 	0x00011103, 0x7e0602ff,
143 	0x00000200, 0xbefc00ff,
144 	0x00010000, 0xbe80007b,
145 	0x867bff7b, 0xff7fffff,
146 	0x877bff7b, 0x00058000,
147 	0xd8ec0000, 0x00000002,
148 	0xbf8c007f, 0xe0765000,
149 	0x6e1e0002, 0x32040702,
150 	0xd0c9006a, 0x0000eb02,
151 	0xbf87fff7, 0xbefb0000,
152 	0xbeee00ff, 0x00000400,
153 	0xbefe00c1, 0xbeff00c1,
154 	0xb8f52a05, 0x80758175,
155 	0x8e758275, 0x8e7a8875,
156 	0xbefa00ff, 0x01000000,
157 	0xbefc0084, 0xbf0a757c,
158 	0xbf840015, 0xbf11017c,
159 	0x8075ff75, 0x00001000,
160 	0x7e000300, 0x7e020301,
161 	0x7e040302, 0x7e060303,
162 	0xe0724000, 0x6e1e0000,
163 	0xe0724100, 0x6e1e0100,
164 	0xe0724200, 0x6e1e0200,
165 	0xe0724300, 0x6e1e0300,
166 	0x807c847c, 0x806eff6e,
167 	0x00000400, 0xbf0a757c,
168 	0xbf85ffef, 0xbf9c0000,
169 	0xbf8200cd, 0xbef8007e,
170 	0x8679ff7f, 0x0000ffff,
171 	0x8779ff79, 0x00040000,
172 	0xbefa0080, 0xbefb00ff,
173 	0x00807fac, 0x8676ff7f,
174 	0x08000000, 0x8f768376,
175 	0x877b767b, 0x8676ff7f,
176 	0x70000000, 0x8f768176,
177 	0x877b767b, 0x8676ff7f,
178 	0x04000000, 0xbf84001e,
179 	0xbefe00c1, 0xbeff00c1,
180 	0xb8f34306, 0x8673c173,
181 	0xbf840019, 0x8e738673,
182 	0x8e738273, 0xbefa0073,
183 	0xb8f22a05, 0x80728172,
184 	0x8e728a72, 0xb8f61605,
185 	0x80768176, 0x8e768676,
186 	0x80727672, 0x8072ff72,
187 	0x00000080, 0xbefa00ff,
188 	0x01000000, 0xbefc0080,
189 	0xe0510000, 0x721e0000,
190 	0xe0510100, 0x721e0000,
191 	0x807cff7c, 0x00000200,
192 	0x8072ff72, 0x00000200,
193 	0xbf0a737c, 0xbf85fff6,
194 	0xbef20080, 0xbefe00c1,
195 	0xbeff00c1, 0xb8f32a05,
196 	0x80738173, 0x8e738273,
197 	0x8e7a8873, 0xbefa00ff,
198 	0x01000000, 0xbef60072,
199 	0x8072ff72, 0x00000400,
200 	0xbefc0084, 0xbf11087c,
201 	0x8073ff73, 0x00008000,
202 	0xe0524000, 0x721e0000,
203 	0xe0524100, 0x721e0100,
204 	0xe0524200, 0x721e0200,
205 	0xe0524300, 0x721e0300,
206 	0xbf8c0f70, 0x7e000300,
207 	0x7e020301, 0x7e040302,
208 	0x7e060303, 0x807c847c,
209 	0x8072ff72, 0x00000400,
210 	0xbf0a737c, 0xbf85ffee,
211 	0xbf9c0000, 0xe0524000,
212 	0x761e0000, 0xe0524100,
213 	0x761e0100, 0xe0524200,
214 	0x761e0200, 0xe0524300,
215 	0x761e0300, 0xb8f22a05,
216 	0x80728172, 0x8e728a72,
217 	0xb8f61605, 0x80768176,
218 	0x8e768676, 0x80727672,
219 	0x80f2c072, 0xb8f31605,
220 	0x80738173, 0x8e738473,
221 	0x8e7a8273, 0xbefa00ff,
222 	0x01000000, 0xbefc0073,
223 	0xc031003c, 0x00000072,
224 	0x80f2c072, 0xbf8c007f,
225 	0x80fc907c, 0xbe802d00,
226 	0xbe822d02, 0xbe842d04,
227 	0xbe862d06, 0xbe882d08,
228 	0xbe8a2d0a, 0xbe8c2d0c,
229 	0xbe8e2d0e, 0xbf06807c,
230 	0xbf84fff1, 0xb8f22a05,
231 	0x80728172, 0x8e728a72,
232 	0xb8f61605, 0x80768176,
233 	0x8e768676, 0x80727672,
234 	0xbefa0084, 0xbefa00ff,
235 	0x01000000, 0xc0211cfc,
236 	0x00000072, 0x80728472,
237 	0xc0211c3c, 0x00000072,
238 	0x80728472, 0xc0211c7c,
239 	0x00000072, 0x80728472,
240 	0xc0211bbc, 0x00000072,
241 	0x80728472, 0xc0211bfc,
242 	0x00000072, 0x80728472,
243 	0xc0211d3c, 0x00000072,
244 	0x80728472, 0xc0211d7c,
245 	0x00000072, 0x80728472,
246 	0xc0211a3c, 0x00000072,
247 	0x80728472, 0xc0211a7c,
248 	0x00000072, 0x80728472,
249 	0xc0211dfc, 0x00000072,
250 	0x80728472, 0xc0211b3c,
251 	0x00000072, 0x80728472,
252 	0xc0211b7c, 0x00000072,
253 	0x80728472, 0xbf8c007f,
254 	0xbefc0073, 0xbefe006e,
255 	0xbeff006f, 0x867375ff,
256 	0x000003ff, 0xb9734803,
257 	0x867375ff, 0xfffff800,
258 	0x8f738b73, 0xb973a2c3,
259 	0xb977f801, 0x8673ff71,
260 	0xf0000000, 0x8f739c73,
261 	0x8e739073, 0xbef60080,
262 	0x87767376, 0x8673ff71,
263 	0x08000000, 0x8f739b73,
264 	0x8e738f73, 0x87767376,
265 	0x8673ff74, 0x00800000,
266 	0x8f739773, 0xb976f807,
267 	0x8671ff71, 0x0000ffff,
268 	0x86fe7e7e, 0x86ea6a6a,
269 	0x8f768374, 0xb976e0c2,
270 	0xbf800002, 0xb9740002,
271 	0xbf8a0000, 0x95807370,
272 	0xbf810000, 0x00000000,
273 };
274 
275 
276 static const uint32_t cwsr_trap_gfx9_hex[] = {
277 	0xbf820001, 0xbf82015e,
278 	0xb8f8f802, 0x89788678,
279 	0xb8fbf803, 0x866eff7b,
280 	0x00000400, 0xbf85003b,
281 	0x866eff7b, 0x00000800,
282 	0xbf850003, 0x866eff7b,
283 	0x00000100, 0xbf84000c,
284 	0x866eff78, 0x00002000,
285 	0xbf840005, 0xbf8e0010,
286 	0xb8eef803, 0x866eff6e,
287 	0x00000400, 0xbf84fffb,
288 	0x8778ff78, 0x00002000,
289 	0x80ec886c, 0x82ed806d,
290 	0xb8eef807, 0x866fff6e,
291 	0x001f8000, 0x8e6f8b6f,
292 	0x8977ff77, 0xfc000000,
293 	0x87776f77, 0x896eff6e,
294 	0x001f8000, 0xb96ef807,
295 	0xb8faf812, 0xb8fbf813,
296 	0x8efa887a, 0xc0071bbd,
297 	0x00000000, 0xbf8cc07f,
298 	0xc0071ebd, 0x00000008,
299 	0xbf8cc07f, 0x86ee6e6e,
300 	0xbf840001, 0xbe801d6e,
301 	0xb8fbf803, 0x867bff7b,
302 	0x000001ff, 0xbf850002,
303 	0x806c846c, 0x826d806d,
304 	0x866dff6d, 0x0000ffff,
305 	0x8f6e8b77, 0x866eff6e,
306 	0x001f8000, 0xb96ef807,
307 	0x86fe7e7e, 0x86ea6a6a,
308 	0x8f6e8378, 0xb96ee0c2,
309 	0xbf800002, 0xb9780002,
310 	0xbe801f6c, 0x866dff6d,
311 	0x0000ffff, 0xbefa0080,
312 	0xb97a0283, 0xb8fa2407,
313 	0x8e7a9b7a, 0x876d7a6d,
314 	0xb8fa03c7, 0x8e7a9a7a,
315 	0x876d7a6d, 0xb8faf807,
316 	0x867aff7a, 0x00007fff,
317 	0xb97af807, 0xbeee007e,
318 	0xbeef007f, 0xbefe0180,
319 	0xbf900004, 0x877a8478,
320 	0xb97af802, 0xbf8e0002,
321 	0xbf88fffe, 0xb8fa2a05,
322 	0x807a817a, 0x8e7a8a7a,
323 	0xb8fb1605, 0x807b817b,
324 	0x8e7b867b, 0x807a7b7a,
325 	0x807a7e7a, 0x827b807f,
326 	0x867bff7b, 0x0000ffff,
327 	0xc04b1c3d, 0x00000050,
328 	0xbf8cc07f, 0xc04b1d3d,
329 	0x00000060, 0xbf8cc07f,
330 	0xc0431e7d, 0x00000074,
331 	0xbf8cc07f, 0xbef4007e,
332 	0x8675ff7f, 0x0000ffff,
333 	0x8775ff75, 0x00040000,
334 	0xbef60080, 0xbef700ff,
335 	0x00807fac, 0x867aff7f,
336 	0x08000000, 0x8f7a837a,
337 	0x87777a77, 0x867aff7f,
338 	0x70000000, 0x8f7a817a,
339 	0x87777a77, 0xbef1007c,
340 	0xbef00080, 0xb8f02a05,
341 	0x80708170, 0x8e708a70,
342 	0xb8fa1605, 0x807a817a,
343 	0x8e7a867a, 0x80707a70,
344 	0xbef60084, 0xbef600ff,
345 	0x01000000, 0xbefe007c,
346 	0xbefc0070, 0xc0611c7a,
347 	0x0000007c, 0xbf8cc07f,
348 	0x80708470, 0xbefc007e,
349 	0xbefe007c, 0xbefc0070,
350 	0xc0611b3a, 0x0000007c,
351 	0xbf8cc07f, 0x80708470,
352 	0xbefc007e, 0xbefe007c,
353 	0xbefc0070, 0xc0611b7a,
354 	0x0000007c, 0xbf8cc07f,
355 	0x80708470, 0xbefc007e,
356 	0xbefe007c, 0xbefc0070,
357 	0xc0611bba, 0x0000007c,
358 	0xbf8cc07f, 0x80708470,
359 	0xbefc007e, 0xbefe007c,
360 	0xbefc0070, 0xc0611bfa,
361 	0x0000007c, 0xbf8cc07f,
362 	0x80708470, 0xbefc007e,
363 	0xbefe007c, 0xbefc0070,
364 	0xc0611e3a, 0x0000007c,
365 	0xbf8cc07f, 0x80708470,
366 	0xbefc007e, 0xb8fbf803,
367 	0xbefe007c, 0xbefc0070,
368 	0xc0611efa, 0x0000007c,
369 	0xbf8cc07f, 0x80708470,
370 	0xbefc007e, 0xbefe007c,
371 	0xbefc0070, 0xc0611a3a,
372 	0x0000007c, 0xbf8cc07f,
373 	0x80708470, 0xbefc007e,
374 	0xbefe007c, 0xbefc0070,
375 	0xc0611a7a, 0x0000007c,
376 	0xbf8cc07f, 0x80708470,
377 	0xbefc007e, 0xb8f1f801,
378 	0xbefe007c, 0xbefc0070,
379 	0xc0611c7a, 0x0000007c,
380 	0xbf8cc07f, 0x80708470,
381 	0xbefc007e, 0x867aff7f,
382 	0x04000000, 0xbeef0080,
383 	0x876f6f7a, 0xb8f02a05,
384 	0x80708170, 0x8e708a70,
385 	0xb8fb1605, 0x807b817b,
386 	0x8e7b847b, 0x8e76827b,
387 	0xbef600ff, 0x01000000,
388 	0xbef20174, 0x80747074,
389 	0x82758075, 0xbefc0080,
390 	0xbf800000, 0xbe802b00,
391 	0xbe822b02, 0xbe842b04,
392 	0xbe862b06, 0xbe882b08,
393 	0xbe8a2b0a, 0xbe8c2b0c,
394 	0xbe8e2b0e, 0xc06b003a,
395 	0x00000000, 0xbf8cc07f,
396 	0xc06b013a, 0x00000010,
397 	0xbf8cc07f, 0xc06b023a,
398 	0x00000020, 0xbf8cc07f,
399 	0xc06b033a, 0x00000030,
400 	0xbf8cc07f, 0x8074c074,
401 	0x82758075, 0x807c907c,
402 	0xbf0a7b7c, 0xbf85ffe7,
403 	0xbef40172, 0xbef00080,
404 	0xbefe00c1, 0xbeff00c1,
405 	0xbee80080, 0xbee90080,
406 	0xbef600ff, 0x01000000,
407 	0xe0724000, 0x701d0000,
408 	0xe0724100, 0x701d0100,
409 	0xe0724200, 0x701d0200,
410 	0xe0724300, 0x701d0300,
411 	0xbefe00c1, 0xbeff00c1,
412 	0xb8fb4306, 0x867bc17b,
413 	0xbf84002c, 0xbf8a0000,
414 	0x867aff6f, 0x04000000,
415 	0xbf840028, 0x8e7b867b,
416 	0x8e7b827b, 0xbef6007b,
417 	0xb8f02a05, 0x80708170,
418 	0x8e708a70, 0xb8fa1605,
419 	0x807a817a, 0x8e7a867a,
420 	0x80707a70, 0x8070ff70,
421 	0x00000080, 0xbef600ff,
422 	0x01000000, 0xbefc0080,
423 	0xd28c0002, 0x000100c1,
424 	0xd28d0003, 0x000204c1,
425 	0xd1060002, 0x00011103,
426 	0x7e0602ff, 0x00000200,
427 	0xbefc00ff, 0x00010000,
428 	0xbe800077, 0x8677ff77,
429 	0xff7fffff, 0x8777ff77,
430 	0x00058000, 0xd8ec0000,
431 	0x00000002, 0xbf8cc07f,
432 	0xe0765000, 0x701d0002,
433 	0x68040702, 0xd0c9006a,
434 	0x0000f702, 0xbf87fff7,
435 	0xbef70000, 0xbef000ff,
436 	0x00000400, 0xbefe00c1,
437 	0xbeff00c1, 0xb8fb2a05,
438 	0x807b817b, 0x8e7b827b,
439 	0x8e76887b, 0xbef600ff,
440 	0x01000000, 0xbefc0084,
441 	0xbf0a7b7c, 0xbf840015,
442 	0xbf11017c, 0x807bff7b,
443 	0x00001000, 0x7e000300,
444 	0x7e020301, 0x7e040302,
445 	0x7e060303, 0xe0724000,
446 	0x701d0000, 0xe0724100,
447 	0x701d0100, 0xe0724200,
448 	0x701d0200, 0xe0724300,
449 	0x701d0300, 0x807c847c,
450 	0x8070ff70, 0x00000400,
451 	0xbf0a7b7c, 0xbf85ffef,
452 	0xbf9c0000, 0xbf8200da,
453 	0xbef4007e, 0x8675ff7f,
454 	0x0000ffff, 0x8775ff75,
455 	0x00040000, 0xbef60080,
456 	0xbef700ff, 0x00807fac,
457 	0x866eff7f, 0x08000000,
458 	0x8f6e836e, 0x87776e77,
459 	0x866eff7f, 0x70000000,
460 	0x8f6e816e, 0x87776e77,
461 	0x866eff7f, 0x04000000,
462 	0xbf84001e, 0xbefe00c1,
463 	0xbeff00c1, 0xb8ef4306,
464 	0x866fc16f, 0xbf840019,
465 	0x8e6f866f, 0x8e6f826f,
466 	0xbef6006f, 0xb8f82a05,
467 	0x80788178, 0x8e788a78,
468 	0xb8ee1605, 0x806e816e,
469 	0x8e6e866e, 0x80786e78,
470 	0x8078ff78, 0x00000080,
471 	0xbef600ff, 0x01000000,
472 	0xbefc0080, 0xe0510000,
473 	0x781d0000, 0xe0510100,
474 	0x781d0000, 0x807cff7c,
475 	0x00000200, 0x8078ff78,
476 	0x00000200, 0xbf0a6f7c,
477 	0xbf85fff6, 0xbef80080,
478 	0xbefe00c1, 0xbeff00c1,
479 	0xb8ef2a05, 0x806f816f,
480 	0x8e6f826f, 0x8e76886f,
481 	0xbef600ff, 0x01000000,
482 	0xbeee0078, 0x8078ff78,
483 	0x00000400, 0xbefc0084,
484 	0xbf11087c, 0x806fff6f,
485 	0x00008000, 0xe0524000,
486 	0x781d0000, 0xe0524100,
487 	0x781d0100, 0xe0524200,
488 	0x781d0200, 0xe0524300,
489 	0x781d0300, 0xbf8c0f70,
490 	0x7e000300, 0x7e020301,
491 	0x7e040302, 0x7e060303,
492 	0x807c847c, 0x8078ff78,
493 	0x00000400, 0xbf0a6f7c,
494 	0xbf85ffee, 0xbf9c0000,
495 	0xe0524000, 0x6e1d0000,
496 	0xe0524100, 0x6e1d0100,
497 	0xe0524200, 0x6e1d0200,
498 	0xe0524300, 0x6e1d0300,
499 	0xb8f82a05, 0x80788178,
500 	0x8e788a78, 0xb8ee1605,
501 	0x806e816e, 0x8e6e866e,
502 	0x80786e78, 0x80f8c078,
503 	0xb8ef1605, 0x806f816f,
504 	0x8e6f846f, 0x8e76826f,
505 	0xbef600ff, 0x01000000,
506 	0xbefc006f, 0xc031003a,
507 	0x00000078, 0x80f8c078,
508 	0xbf8cc07f, 0x80fc907c,
509 	0xbf800000, 0xbe802d00,
510 	0xbe822d02, 0xbe842d04,
511 	0xbe862d06, 0xbe882d08,
512 	0xbe8a2d0a, 0xbe8c2d0c,
513 	0xbe8e2d0e, 0xbf06807c,
514 	0xbf84fff0, 0xb8f82a05,
515 	0x80788178, 0x8e788a78,
516 	0xb8ee1605, 0x806e816e,
517 	0x8e6e866e, 0x80786e78,
518 	0xbef60084, 0xbef600ff,
519 	0x01000000, 0xc0211bfa,
520 	0x00000078, 0x80788478,
521 	0xc0211b3a, 0x00000078,
522 	0x80788478, 0xc0211b7a,
523 	0x00000078, 0x80788478,
524 	0xc0211c3a, 0x00000078,
525 	0x80788478, 0xc0211c7a,
526 	0x00000078, 0x80788478,
527 	0xc0211eba, 0x00000078,
528 	0x80788478, 0xc0211efa,
529 	0x00000078, 0x80788478,
530 	0xc0211a3a, 0x00000078,
531 	0x80788478, 0xc0211a7a,
532 	0x00000078, 0x80788478,
533 	0xc0211cfa, 0x00000078,
534 	0x80788478, 0xbf8cc07f,
535 	0xbefc006f, 0xbefe0070,
536 	0xbeff0071, 0x866f7bff,
537 	0x000003ff, 0xb96f4803,
538 	0x866f7bff, 0xfffff800,
539 	0x8f6f8b6f, 0xb96fa2c3,
540 	0xb973f801, 0xb8ee2a05,
541 	0x806e816e, 0x8e6e8a6e,
542 	0xb8ef1605, 0x806f816f,
543 	0x8e6f866f, 0x806e6f6e,
544 	0x806e746e, 0x826f8075,
545 	0x866fff6f, 0x0000ffff,
546 	0xc00b1c37, 0x00000050,
547 	0xc00b1d37, 0x00000060,
548 	0xc0031e77, 0x00000074,
549 	0xbf8cc07f, 0x866fff6d,
550 	0xf8000000, 0x8f6f9b6f,
551 	0x8e6f906f, 0xbeee0080,
552 	0x876e6f6e, 0x866fff6d,
553 	0x04000000, 0x8f6f9a6f,
554 	0x8e6f8f6f, 0x876e6f6e,
555 	0x866fff7a, 0x00800000,
556 	0x8f6f976f, 0xb96ef807,
557 	0x866dff6d, 0x0000ffff,
558 	0x86fe7e7e, 0x86ea6a6a,
559 	0x8f6e837a, 0xb96ee0c2,
560 	0xbf800002, 0xb97a0002,
561 	0xbf8a0000, 0x95806f6c,
562 	0xbf810000, 0x00000000,
563 };
564 
565 static const uint32_t cwsr_trap_gfx10_hex[] = {
566 	0xbf820001, 0xbf82012e,
567 	0xb0804004, 0xb970f802,
568 	0x8a708670, 0xb971f803,
569 	0x8771ff71, 0x00000400,
570 	0xbf850008, 0xb971f803,
571 	0x8771ff71, 0x000001ff,
572 	0xbf850001, 0x806c846c,
573 	0x876dff6d, 0x0000ffff,
574 	0xbe80226c, 0xb971f803,
575 	0x8771ff71, 0x00000100,
576 	0xbf840006, 0xbef60380,
577 	0xb9f60203, 0x876dff6d,
578 	0x0000ffff, 0x80ec886c,
579 	0x82ed806d, 0xbef60380,
580 	0xb9f60283, 0xb973f816,
581 	0xb9762c07, 0x8f769c76,
582 	0x886d766d, 0xb97603c7,
583 	0x8f769b76, 0x886d766d,
584 	0xb976f807, 0x8776ff76,
585 	0x00007fff, 0xb9f6f807,
586 	0xbeee037e, 0xbeef037f,
587 	0xbefe0480, 0xbf900004,
588 	0xbf8e0002, 0xbf88fffe,
589 	0xbef4037e, 0x8775ff7f,
590 	0x0000ffff, 0x8875ff75,
591 	0x00040000, 0xbef60380,
592 	0xbef703ff, 0x00807fac,
593 	0x8776ff7f, 0x08000000,
594 	0x90768376, 0x88777677,
595 	0x8776ff7f, 0x70000000,
596 	0x90768176, 0x88777677,
597 	0xbefb037c, 0xbefa0380,
598 	0xb97202dc, 0x8872727f,
599 	0xbefe03c1, 0x877c8172,
600 	0xbf06817c, 0xbf850002,
601 	0xbeff0380, 0xbf820001,
602 	0xbeff03c1, 0xb9712a05,
603 	0x80718171, 0x8f718271,
604 	0x877c8172, 0xbf06817c,
605 	0xbf85000d, 0x8f768771,
606 	0xbef603ff, 0x01000000,
607 	0xbefc0380, 0x7e008700,
608 	0xe0704000, 0x7a5d0000,
609 	0x807c817c, 0x807aff7a,
610 	0x00000080, 0xbf0a717c,
611 	0xbf85fff8, 0xbf82001b,
612 	0x8f768871, 0xbef603ff,
613 	0x01000000, 0xbefc0380,
614 	0x7e008700, 0xe0704000,
615 	0x7a5d0000, 0x807c817c,
616 	0x807aff7a, 0x00000100,
617 	0xbf0a717c, 0xbf85fff8,
618 	0xb9711e06, 0x8771c171,
619 	0xbf84000c, 0x8f718371,
620 	0x80717c71, 0xbefe03c1,
621 	0xbeff0380, 0x7e008700,
622 	0xe0704000, 0x7a5d0000,
623 	0x807c817c, 0x807aff7a,
624 	0x00000080, 0xbf0a717c,
625 	0xbf85fff8, 0xbf8a0000,
626 	0x8776ff72, 0x04000000,
627 	0xbf84002b, 0xbefe03c1,
628 	0x877c8172, 0xbf06817c,
629 	0xbf850002, 0xbeff0380,
630 	0xbf820001, 0xbeff03c1,
631 	0xb9714306, 0x8771c171,
632 	0xbf840021, 0x8f718671,
633 	0x8f718271, 0xbef60371,
634 	0xbef603ff, 0x01000000,
635 	0xd7650000, 0x000100c1,
636 	0xd7660000, 0x000200c1,
637 	0x16000084, 0x877c8172,
638 	0xbf06817c, 0xbefc0380,
639 	0xbf85000a, 0x807cff7c,
640 	0x00000080, 0x807aff7a,
641 	0x00000080, 0xd5250000,
642 	0x0001ff00, 0x00000080,
643 	0xbf0a717c, 0xbf85fff7,
644 	0xbf820009, 0x807cff7c,
645 	0x00000100, 0x807aff7a,
646 	0x00000100, 0xd5250000,
647 	0x0001ff00, 0x00000100,
648 	0xbf0a717c, 0xbf85fff7,
649 	0x877c8172, 0xbf06817c,
650 	0xbf850003, 0x8f7687ff,
651 	0x0000006a, 0xbf820002,
652 	0x8f7688ff, 0x0000006a,
653 	0xbef603ff, 0x01000000,
654 	0x877c8172, 0xbf06817c,
655 	0xbefc0380, 0xbf800000,
656 	0xbf85000b, 0xbe802e00,
657 	0x7e000200, 0xe0704000,
658 	0x7a5d0000, 0x807aff7a,
659 	0x00000080, 0x807c817c,
660 	0xbf0aff7c, 0x0000006a,
661 	0xbf85fff6, 0xbf82000a,
662 	0xbe802e00, 0x7e000200,
663 	0xe0704000, 0x7a5d0000,
664 	0x807aff7a, 0x00000100,
665 	0x807c817c, 0xbf0aff7c,
666 	0x0000006a, 0xbf85fff6,
667 	0xbef60384, 0xbef603ff,
668 	0x01000000, 0x877c8172,
669 	0xbf06817c, 0xbf850030,
670 	0x7e00027b, 0xe0704000,
671 	0x7a5d0000, 0x807aff7a,
672 	0x00000080, 0x7e00026c,
673 	0xe0704000, 0x7a5d0000,
674 	0x807aff7a, 0x00000080,
675 	0x7e00026d, 0xe0704000,
676 	0x7a5d0000, 0x807aff7a,
677 	0x00000080, 0x7e00026e,
678 	0xe0704000, 0x7a5d0000,
679 	0x807aff7a, 0x00000080,
680 	0x7e00026f, 0xe0704000,
681 	0x7a5d0000, 0x807aff7a,
682 	0x00000080, 0x7e000270,
683 	0xe0704000, 0x7a5d0000,
684 	0x807aff7a, 0x00000080,
685 	0xb971f803, 0x7e000271,
686 	0xe0704000, 0x7a5d0000,
687 	0x807aff7a, 0x00000080,
688 	0x7e000273, 0xe0704000,
689 	0x7a5d0000, 0x807aff7a,
690 	0x00000080, 0xb97bf801,
691 	0x7e00027b, 0xe0704000,
692 	0x7a5d0000, 0x807aff7a,
693 	0x00000080, 0xbf82002f,
694 	0x7e00027b, 0xe0704000,
695 	0x7a5d0000, 0x807aff7a,
696 	0x00000100, 0x7e00026c,
697 	0xe0704000, 0x7a5d0000,
698 	0x807aff7a, 0x00000100,
699 	0x7e00026d, 0xe0704000,
700 	0x7a5d0000, 0x807aff7a,
701 	0x00000100, 0x7e00026e,
702 	0xe0704000, 0x7a5d0000,
703 	0x807aff7a, 0x00000100,
704 	0x7e00026f, 0xe0704000,
705 	0x7a5d0000, 0x807aff7a,
706 	0x00000100, 0x7e000270,
707 	0xe0704000, 0x7a5d0000,
708 	0x807aff7a, 0x00000100,
709 	0xb971f803, 0x7e000271,
710 	0xe0704000, 0x7a5d0000,
711 	0x807aff7a, 0x00000100,
712 	0x7e000273, 0xe0704000,
713 	0x7a5d0000, 0x807aff7a,
714 	0x00000100, 0xb97bf801,
715 	0x7e00027b, 0xe0704000,
716 	0x7a5d0000, 0x807aff7a,
717 	0x00000100, 0xbf820119,
718 	0xbef4037e, 0x8775ff7f,
719 	0x0000ffff, 0x8875ff75,
720 	0x00040000, 0xbef60380,
721 	0xbef703ff, 0x00807fac,
722 	0x8772ff7f, 0x08000000,
723 	0x90728372, 0x88777277,
724 	0x8772ff7f, 0x70000000,
725 	0x90728172, 0x88777277,
726 	0xb97902dc, 0x8879797f,
727 	0xbef80380, 0xbefe03c1,
728 	0x877c8179, 0xbf06817c,
729 	0xbf850002, 0xbeff0380,
730 	0xbf820001, 0xbeff03c1,
731 	0xb96f2a05, 0x806f816f,
732 	0x8f6f826f, 0x877c8179,
733 	0xbf06817c, 0xbf850013,
734 	0x8f76876f, 0xbef603ff,
735 	0x01000000, 0xbef20378,
736 	0x8078ff78, 0x00000080,
737 	0xbefc0381, 0xe0304000,
738 	0x785d0000, 0xbf8c3f70,
739 	0x7e008500, 0x807c817c,
740 	0x8078ff78, 0x00000080,
741 	0xbf0a6f7c, 0xbf85fff7,
742 	0xe0304000, 0x725d0000,
743 	0xbf820023, 0x8f76886f,
744 	0xbef603ff, 0x01000000,
745 	0xbef20378, 0x8078ff78,
746 	0x00000100, 0xbefc0381,
747 	0xe0304000, 0x785d0000,
748 	0xbf8c3f70, 0x7e008500,
749 	0x807c817c, 0x8078ff78,
750 	0x00000100, 0xbf0a6f7c,
751 	0xbf85fff7, 0xb96f1e06,
752 	0x876fc16f, 0xbf84000e,
753 	0x8f6f836f, 0x806f7c6f,
754 	0xbefe03c1, 0xbeff0380,
755 	0xe0304000, 0x785d0000,
756 	0xbf8c3f70, 0x7e008500,
757 	0x807c817c, 0x8078ff78,
758 	0x00000080, 0xbf0a6f7c,
759 	0xbf85fff7, 0xbeff03c1,
760 	0xe0304000, 0x725d0000,
761 	0x8772ff79, 0x04000000,
762 	0xbf840020, 0xbefe03c1,
763 	0x877c8179, 0xbf06817c,
764 	0xbf850002, 0xbeff0380,
765 	0xbf820001, 0xbeff03c1,
766 	0xb96f4306, 0x876fc16f,
767 	0xbf840016, 0x8f6f866f,
768 	0x8f6f826f, 0xbef6036f,
769 	0xbef603ff, 0x01000000,
770 	0x877c8172, 0xbf06817c,
771 	0xbefc0380, 0xbf850007,
772 	0x807cff7c, 0x00000080,
773 	0x8078ff78, 0x00000080,
774 	0xbf0a6f7c, 0xbf85fffa,
775 	0xbf820006, 0x807cff7c,
776 	0x00000100, 0x8078ff78,
777 	0x00000100, 0xbf0a6f7c,
778 	0xbf85fffa, 0x877c8179,
779 	0xbf06817c, 0xbf850003,
780 	0x8f7687ff, 0x0000006a,
781 	0xbf820002, 0x8f7688ff,
782 	0x0000006a, 0xbef603ff,
783 	0x01000000, 0x877c8179,
784 	0xbf06817c, 0xbf850012,
785 	0xf4211cba, 0xf0000000,
786 	0x8078ff78, 0x00000080,
787 	0xbefc0381, 0xf421003a,
788 	0xf0000000, 0x8078ff78,
789 	0x00000080, 0xbf8cc07f,
790 	0xbe803000, 0xbf800000,
791 	0x807c817c, 0xbf0aff7c,
792 	0x0000006a, 0xbf85fff5,
793 	0xbe800372, 0xbf820011,
794 	0xf4211cba, 0xf0000000,
795 	0x8078ff78, 0x00000100,
796 	0xbefc0381, 0xf421003a,
797 	0xf0000000, 0x8078ff78,
798 	0x00000100, 0xbf8cc07f,
799 	0xbe803000, 0xbf800000,
800 	0x807c817c, 0xbf0aff7c,
801 	0x0000006a, 0xbf85fff5,
802 	0xbe800372, 0xbef60384,
803 	0xbef603ff, 0x01000000,
804 	0x877c8179, 0xbf06817c,
805 	0xbf850025, 0xf4211bfa,
806 	0xf0000000, 0x8078ff78,
807 	0x00000080, 0xf4211b3a,
808 	0xf0000000, 0x8078ff78,
809 	0x00000080, 0xf4211b7a,
810 	0xf0000000, 0x8078ff78,
811 	0x00000080, 0xf4211eba,
812 	0xf0000000, 0x8078ff78,
813 	0x00000080, 0xf4211efa,
814 	0xf0000000, 0x8078ff78,
815 	0x00000080, 0xf4211c3a,
816 	0xf0000000, 0x8078ff78,
817 	0x00000080, 0xf4211c7a,
818 	0xf0000000, 0x8078ff78,
819 	0x00000080, 0xf4211cfa,
820 	0xf0000000, 0x8078ff78,
821 	0x00000080, 0xf4211e7a,
822 	0xf0000000, 0x8078ff78,
823 	0x00000080, 0xbf820024,
824 	0xf4211bfa, 0xf0000000,
825 	0x8078ff78, 0x00000100,
826 	0xf4211b3a, 0xf0000000,
827 	0x8078ff78, 0x00000100,
828 	0xf4211b7a, 0xf0000000,
829 	0x8078ff78, 0x00000100,
830 	0xf4211eba, 0xf0000000,
831 	0x8078ff78, 0x00000100,
832 	0xf4211efa, 0xf0000000,
833 	0x8078ff78, 0x00000100,
834 	0xf4211c3a, 0xf0000000,
835 	0x8078ff78, 0x00000100,
836 	0xf4211c7a, 0xf0000000,
837 	0x8078ff78, 0x00000100,
838 	0xf4211cfa, 0xf0000000,
839 	0x8078ff78, 0x00000100,
840 	0xf4211e7a, 0xf0000000,
841 	0x8078ff78, 0x00000100,
842 	0xbf8cc07f, 0x876dff6d,
843 	0x0000ffff, 0xbefc036f,
844 	0xbefe037a, 0xbeff037b,
845 	0x876f71ff, 0x000003ff,
846 	0xb9ef4803, 0xb9f3f816,
847 	0x876f71ff, 0xfffff800,
848 	0x906f8b6f, 0xb9efa2c3,
849 	0xb9f9f801, 0x876fff6d,
850 	0xf0000000, 0x906f9c6f,
851 	0x8f6f906f, 0xbef20380,
852 	0x88726f72, 0x876fff6d,
853 	0x08000000, 0x906f9b6f,
854 	0x8f6f8f6f, 0x88726f72,
855 	0x876fff70, 0x00800000,
856 	0x906f976f, 0xb9f2f807,
857 	0xb9f0f802, 0xbf8a0000,
858 	0xbe80226c, 0xbf810000,
859 	0xbf9f0000, 0xbf9f0000,
860 	0xbf9f0000, 0xbf9f0000,
861 	0xbf9f0000, 0x00000000,
862 };
863