Skip to content

Commit 5573638

Browse files
authored
Updated Dolphin SDK
Updated the dolphin sdk
2 parents c14e37a + 6187d79 commit 5573638

File tree

22 files changed

+1142
-692
lines changed

22 files changed

+1142
-692
lines changed

.vscode/settings.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@
2424
"gxmanage.h": "c",
2525
"__ax.h": "c",
2626
"math_api.h": "c",
27-
"arith.h": "c"
27+
"arith.h": "c",
28+
"card.h": "c",
29+
"dvd.h": "c",
30+
"cardpriv.h": "c",
31+
"__card.h": "c",
32+
"osexec.h": "c",
33+
"oscache.h": "c"
2834
},
2935
// Disable C/C++ IntelliSense, use clangd instead
3036
"C_Cpp.intelliSenseEngine": "default",

configure.py

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -499,11 +499,11 @@ def MatchingFor(*versions):
499499
Object(Matching, "dolphin/src/card/CARDFormat.c"),
500500
Object(NonMatching, "dolphin/src/card/CARDOpen.c"),
501501
Object(Matching, "dolphin/src/card/CARDCreate.c"),
502-
Object(NonMatching, "dolphin/src/card/CARDRead.c"),
502+
Object(Matching, "dolphin/src/card/CARDRead.c"),
503503
Object(Matching, "dolphin/src/card/CARDWrite.c"),
504504
Object(Matching, "dolphin/src/card/CARDDelete.c"),
505-
Object(NonMatching, "dolphin/src/card/CARDStat.c"),
506-
Object(NonMatching,"dolphin/src/card/CARDStatEx.c"),
505+
Object(Matching, "dolphin/src/card/CARDStat.c"),
506+
Object(Matching,"dolphin/src/card/CARDStatEx.c"),
507507
Object(NonMatching, "dolphin/src/card/CARDNet.c"),
508508
]
509509
),
@@ -524,9 +524,9 @@ def MatchingFor(*versions):
524524
DolphinLib(
525525
"dvd",
526526
[
527-
Object(NonMatching, "dolphin/src/dvd/dvdlow.c"),
528-
Object(NonMatching, "dolphin/src/dvd/dvdfs.c"),
529-
Object(NonMatching, "dolphin/src/dvd/dvd.c"),
527+
Object(Matching, "dolphin/src/dvd/dvdlow.c"),
528+
Object(Matching, "dolphin/src/dvd/dvdfs.c"),
529+
Object(Matching, "dolphin/src/dvd/dvd.c"),
530530
Object(Matching, "dolphin/src/dvd/dvdqueue.c"),
531531
Object(Matching, "dolphin/src/dvd/dvderror.c"),
532532
Object(Matching, "dolphin/src/dvd/dvdidutils.c"),
@@ -545,20 +545,20 @@ def MatchingFor(*versions):
545545
"gx",
546546
[
547547
Object(NonMatching, "dolphin/src/gx/GXInit.c"),
548-
Object(NonMatching, "dolphin/src/gx/GXFifo.c"),
548+
Object(NonMatching, "dolphin/src/gx/GXFifo.c"), # Code Match
549549
Object(NonMatching, "dolphin/src/gx/GXAttr.c"),
550-
Object(NonMatching, "dolphin/src/gx/GXMisc.c"),
550+
Object(Matching, "dolphin/src/gx/GXMisc.c"),
551551
Object(NonMatching, "dolphin/src/gx/GXGeometry.c"),
552-
Object(NonMatching, "dolphin/src/gx/GXFrameBuf.c"),
552+
Object(Matching, "dolphin/src/gx/GXFrameBuf.c"),
553553
Object(NonMatching, "dolphin/src/gx/GXLight.c"),
554-
Object(NonMatching, "dolphin/src/gx/GXTexture.c"),
554+
Object(Matching, "dolphin/src/gx/GXTexture.c"),
555555
Object(NonMatching, "dolphin/src/gx/GXBump.c"),
556556
Object(NonMatching, "dolphin/src/gx/GXTev.c"),
557557
Object(NonMatching, "dolphin/src/gx/GXPixel.c"),
558558
Object(NonMatching, "dolphin/src/gx/GXDraw.c"),
559-
Object(NonMatching, "dolphin/src/gx/GXDisplayList.c"),
559+
Object(Matching, "dolphin/src/gx/GXDisplayList.c"),
560560
Object(NonMatching, "dolphin/src/gx/GXTransform.c"),
561-
Object(NonMatching, "dolphin/src/gx/GXPerf.c")
561+
Object(Matching, "dolphin/src/gx/GXPerf.c")
562562
]
563563
),
564564
DolphinLib(
@@ -583,50 +583,50 @@ def MatchingFor(*versions):
583583
DolphinLib(
584584
"odenotstub",
585585
[
586-
Object(NonMatching, "dolphin/src/odenotstub/odenotstub.c")
586+
Object(Matching, "dolphin/src/odenotstub/odenotstub.c")
587587
]
588588
),
589589
DolphinLib(
590590
"os",
591591
[
592592
Object(NonMatching, "dolphin/src/os/OS.c"),
593-
Object(NonMatching, "dolphin/src/os/OSAlarm.c"),
594-
Object(NonMatching, "dolphin/src/os/OSAlloc.c"),
595-
Object(NonMatching, "dolphin/src/os/OSArena.c"),
596-
Object(NonMatching, "dolphin/src/os/OSAudioSystem.c"),
597-
Object(NonMatching, "dolphin/src/os/OSCache.c"),
598-
Object(NonMatching, "dolphin/src/os/OSContext.c"),
593+
Object(Matching, "dolphin/src/os/OSAlarm.c"),
594+
Object(Matching, "dolphin/src/os/OSAlloc.c"),
595+
Object(Matching, "dolphin/src/os/OSArena.c"),
596+
Object(Matching, "dolphin/src/os/OSAudioSystem.c"),
597+
Object(Matching, "dolphin/src/os/OSCache.c"),
598+
Object(Matching, "dolphin/src/os/OSContext.c"),
599599
Object(NonMatching, "dolphin/src/os/OSError.c"),
600600
Object(NonMatching, "dolphin/src/os/OSExec.c"),
601601
Object(NonMatching, "dolphin/src/os/OSFont.c"),
602-
Object(NonMatching, "dolphin/src/os/OSInterrupt.c"),
603-
Object(NonMatching, "dolphin/src/os/OSLink.c"),
604-
Object(NonMatching, "dolphin/src/os/OSMemory.c"),
605-
Object(NonMatching, "dolphin/src/os/OSMutex.c"),
602+
Object(Matching, "dolphin/src/os/OSInterrupt.c"),
603+
Object(Matching, "dolphin/src/os/OSLink.c"),
604+
Object(Matching, "dolphin/src/os/OSMemory.c"),
605+
Object(Matching, "dolphin/src/os/OSMutex.c"),
606606
Object(NonMatching, "dolphin/src/os/OSReboot.c"),
607607
Object(NonMatching, "dolphin/src/os/OSReset.c"),
608-
Object(NonMatching, "dolphin/src/os/OSResetSW.c"),
609-
Object(NonMatching, "dolphin/src/os/OSRtc.c"),
608+
Object(Matching, "dolphin/src/os/OSResetSW.c"),
609+
Object(Matching, "dolphin/src/os/OSRtc.c"),
610610
Object(NonMatching, "dolphin/src/os/OSThread.c"),
611-
Object(NonMatching, "dolphin/src/os/OSTime.c"),
612-
Object(NonMatching, "dolphin/src/os/OSSemaphore.c"),
613-
Object(NonMatching, "dolphin/src/os/OSSync.c"),
611+
Object(Matching, "dolphin/src/os/OSTime.c"),
612+
Object(Matching, "dolphin/src/os/OSSemaphore.c"),
613+
Object(Matching, "dolphin/src/os/OSSync.c"),
614614
Object(NonMatching, "dolphin/src/os/init/__start.c"),
615615
Object(NonMatching, "dolphin/src/os/init/__ppc_eabi_init.cpp")
616616
]
617617
),
618618
DolphinLib(
619619
"pad",
620620
[
621-
Object(NonMatching, "dolphin/src/pad/Padclamp.c"),
622-
Object(NonMatching, "dolphin/src/pad/Pad.c")
621+
Object(Matching, "dolphin/src/pad/Padclamp.c"),
622+
Object(Matching, "dolphin/src/pad/Pad.c")
623623
]
624624
),
625625
DolphinLib(
626626
"si",
627627
[
628628
Object(NonMatching, "dolphin/src/si/SIBios.c"),
629-
Object(NonMatching, "dolphin/src/si/SISamplingRate.c"),
629+
Object(Matching, "dolphin/src/si/SISamplingRate.c"),
630630
]
631631
),
632632
DolphinLib(

src/dolphin/include/dolphin/os/OSCache.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ void DCZeroRange(void* addr, u32 nBytes);
1616
void DCTouchRange(void* addr, u32 nBytes);
1717
void ICInvalidateRange(void* addr, u32 nBytes);
1818

19+
// Instruction cache functions.
20+
void ICInvalidateRange(void* addr, u32 numBytes);
21+
void ICFlashInvalidate();
22+
void ICEnable();
23+
1924
#define LC_BASE_PREFIX 0xE000
2025
#define LC_BASE (LC_BASE_PREFIX << 16)
2126
#define LCGetBase() ((void*)LC_BASE)

0 commit comments

Comments
 (0)