Commit 2ca2d96
committed
(WiiU) Port to wut toolchain
This commit is enough to compile RetroArch using wut and more modern
versions of devkitPPC. Among the requisite ports and bugfixes, the wiiu
code has been switched to use wut's headers (where possible).
There's a handful of headers where RA's are more precise, and these
have been put into the `wiiu/include/` hierarchy mirroring WUT's folder
structure, but with `ra_` prepended to the filename to avoid include
directory priority fighting.
Other changes are related to the header changes:
- update defines to use WUT's new definition
- replace custom integer types with standard ones (eg u8 -> uint8_t)
- remove some workarounds/hacks in favor of more precise handling
in WUT.
Cut features that will be re-added later:
- Current rpx symbol names in the exception handler
- somemopt networking optimisations
- Core loading
- libfat support - always uses fs:/vol/external01
(WiiU) memory: handle being in the background properly
Quitting on Aroma works a little differently to HBL - we need to use a ProcUI
loop and go into the background before quitting. This patch prepares the MEM1
and bucket allocators so they won't crash when this happens.
(WiiU) aroma: fix conflict with FTPiiU plug-in
== DETAILS
The HID polling thread was written to be run on a single core, and
basically completely occupies it, not allowing any other threads to
run on it.
It turns out, this is a problem in Aroma, because other things can
be running on your cores. For instance, the FTPiiU server thread runs
on the same core as the HID polling thread, which explains why FTPiiU
stopped working when RetroArch was running.
The other problem, is that if FTPiiU is holding the IPC BufPool mutex
when RA is started, a deadlock will eventually happen because RA will
try to acquire the mutex and the FTPii thread, being suspended, won't
be able to release it.
So!
To fix it:
- add a 500-microsecond sleep to the HID polling thread
- update to WUT's HID headers, which makes some minor changes to
structure member names1 parent f7975fc commit 2ca2d96
68 files changed
Lines changed: 9311 additions & 14216 deletions
File tree
- audio/drivers
- frontend/drivers
- gfx
- common
- drivers_font_renderer
- drivers
- gx2_shaders
- input
- drivers_hid
- drivers_joypad/wiiu
- drivers
- include/wiiu
- libretro-common
- features
- include
- net
- net
- wiiu
- fs
- include
- arpa
- gx2
- netinet
- nn/ac
- nsyskbd
- sndcore2
- sys
- system
- wut/elf2rpl
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | | - | |
| 5 | + | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
| |||
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
40 | | - | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
44 | 41 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 42 | | |
53 | 43 | | |
54 | 44 | | |
| |||
248 | 238 | | |
249 | 239 | | |
250 | 240 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | 241 | | |
261 | 242 | | |
262 | 243 | | |
| |||
267 | 248 | | |
268 | 249 | | |
269 | 250 | | |
270 | | - | |
| 251 | + | |
271 | 252 | | |
272 | 253 | | |
273 | 254 | | |
| |||
280 | 261 | | |
281 | 262 | | |
282 | 263 | | |
283 | | - | |
| 264 | + | |
284 | 265 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
290 | 272 | | |
291 | 273 | | |
292 | 274 | | |
293 | 275 | | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
| 276 | + | |
302 | 277 | | |
303 | 278 | | |
304 | 279 | | |
| |||
334 | 309 | | |
335 | 310 | | |
336 | 311 | | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
| 312 | + | |
342 | 313 | | |
343 | | - | |
344 | | - | |
| 314 | + | |
345 | 315 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
| 316 | + | |
351 | 317 | | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
| 318 | + | |
359 | 319 | | |
360 | 320 | | |
361 | 321 | | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
367 | 325 | | |
368 | 326 | | |
369 | 327 | | |
370 | 328 | | |
371 | | - | |
| 329 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
78 | | - | |
79 | | - | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | | - | |
86 | | - | |
87 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
| |||
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
96 | | - | |
| 99 | + | |
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| |||
0 commit comments