Skip to content

Commit

Permalink
build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanis002 committed Sep 18, 2024
1 parent 08a5872 commit 7e20990
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/emulator/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ typedef struct CpuOptimize {
} CpuOptimize; // size = 0x28

typedef struct Cpu Cpu;
typedef bool (*CpuExecuteFunc)(Cpu* pCPU, s32 nCount, s32 nAddressN64, s32 nAddressGCN);
typedef s32 (*CpuExecuteFunc)(Cpu* pCPU, s32 nCount, s32 nAddressN64, s32 nAddressGCN);

// _CPU
struct Cpu {
Expand Down
12 changes: 6 additions & 6 deletions src/emulator/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2335,7 +2335,7 @@ static inline bool cpuExecuteCacheInstruction(Cpu* pCPU) {
return true;
}

static bool cpuExecuteOpcode(Cpu* pCPU, s32 nCount0, s32 nAddressN64, s32 nAddressGCN) {
static s32 cpuExecuteOpcode(Cpu* pCPU, s32 nCount0, s32 nAddressN64, s32 nAddressGCN) {
s32 pad1[2];
u64 save;
s32 restore;
Expand Down Expand Up @@ -3801,14 +3801,14 @@ static bool cpuExecuteOpcode(Cpu* pCPU, s32 nCount0, s32 nAddressN64, s32 nAddre
}
#endif

static bool cpuExecuteIdle(Cpu* pCPU, s32 nCount, s32 nAddressN64, s32 nAddressGCN) {
static s32 cpuExecuteIdle(Cpu* pCPU, s32 nCount, s32 nAddressN64, s32 nAddressGCN) {
Rom* pROM;

pROM = SYSTEM_ROM(pCPU->pHost);

#if VERSION != MQ_J
if (!simulatorTestReset(false, false, false, true)) {
return false;
return 0;
}
#endif

Expand All @@ -3826,14 +3826,14 @@ static bool cpuExecuteIdle(Cpu* pCPU, s32 nCount, s32 nAddressN64, s32 nAddressG
}

if (!cpuExecuteUpdate(pCPU, &nAddressGCN, nCount)) {
return false;
return 0;
}

pCPU->nTickLast = OSGetTick();
return nAddressGCN;
}

static bool cpuExecuteJump(Cpu* pCPU, s32 nCount, s32 nAddressN64, s32 nAddressGCN) {
static s32 cpuExecuteJump(Cpu* pCPU, s32 nCount, s32 nAddressN64, s32 nAddressGCN) {
nCount = OSGetTick();

if (pCPU->nWaitPC != 0) {
Expand All @@ -3850,7 +3850,7 @@ static bool cpuExecuteJump(Cpu* pCPU, s32 nCount, s32 nAddressN64, s32 nAddressG
}

if (!cpuExecuteUpdate(pCPU, &nAddressGCN, nCount)) {
return false;
return 0;
}

pCPU->nTickLast = OSGetTick();
Expand Down

0 comments on commit 7e20990

Please sign in to comment.