diff options
author | Lioncash <mathew1800@gmail.com> | 2015-02-10 18:37:28 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2015-02-10 19:09:41 +0100 |
commit | 088fab743fcff848b342efd52bfccaf6ee62a72f (patch) | |
tree | 0360a62cfffaee5da99568e28cdd35f13c91aec1 /src/core/arm/interpreter | |
parent | Merge pull request #553 from lioncash/denorm (diff) | |
download | yuzu-088fab743fcff848b342efd52bfccaf6ee62a72f.tar yuzu-088fab743fcff848b342efd52bfccaf6ee62a72f.tar.gz yuzu-088fab743fcff848b342efd52bfccaf6ee62a72f.tar.bz2 yuzu-088fab743fcff848b342efd52bfccaf6ee62a72f.tar.lz yuzu-088fab743fcff848b342efd52bfccaf6ee62a72f.tar.xz yuzu-088fab743fcff848b342efd52bfccaf6ee62a72f.tar.zst yuzu-088fab743fcff848b342efd52bfccaf6ee62a72f.zip |
Diffstat (limited to 'src/core/arm/interpreter')
-rw-r--r-- | src/core/arm/interpreter/armcopro.cpp | 7 | ||||
-rw-r--r-- | src/core/arm/interpreter/arminit.cpp | 14 |
2 files changed, 9 insertions, 12 deletions
diff --git a/src/core/arm/interpreter/armcopro.cpp b/src/core/arm/interpreter/armcopro.cpp index bb9ca98fe..4ae0c52e4 100644 --- a/src/core/arm/interpreter/armcopro.cpp +++ b/src/core/arm/interpreter/armcopro.cpp @@ -47,7 +47,7 @@ static unsigned int NoCoPro5W(ARMul_State* state, unsigned int a, ARMword b, ARM } // Install co-processor instruction handlers in this routine. -unsigned int ARMul_CoProInit(ARMul_State* state) +void ARMul_CoProInit(ARMul_State* state) { // Initialise tham all first. for (unsigned int i = 0; i < 16; i++) @@ -71,11 +71,10 @@ unsigned int ARMul_CoProInit(ARMul_State* state) // No handlers below here. // Call all the initialisation routines. - for (unsigned int i = 0; i < 16; i++) + for (unsigned int i = 0; i < 16; i++) { if (state->CPInit[i]) (state->CPInit[i]) (state); - - return TRUE; + } } // Install co-processor finalisation routines in this routine. diff --git a/src/core/arm/interpreter/arminit.cpp b/src/core/arm/interpreter/arminit.cpp index a52d14960..7b502e240 100644 --- a/src/core/arm/interpreter/arminit.cpp +++ b/src/core/arm/interpreter/arminit.cpp @@ -63,24 +63,22 @@ void ARMul_EmulateInit() \***************************************************************************/ ARMul_State* ARMul_NewState(ARMul_State* state) { - unsigned i, j; - memset (state, 0, sizeof (ARMul_State)); state->Emulate = RUN; - for (i = 0; i < 16; i++) { + for (unsigned int i = 0; i < 16; i++) { state->Reg[i] = 0; - for (j = 0; j < 7; j++) + for (unsigned int j = 0; j < 7; j++) state->RegBank[j][i] = 0; } - for (i = 0; i < 7; i++) + for (unsigned int i = 0; i < 7; i++) state->Spsr[i] = 0; + state->Mode = 0; - state->Debug = FALSE; state->VectorCatch = 0; - state->Aborted = FALSE; - state->Reseted = FALSE; + state->Aborted = false; + state->Reseted = false; state->Inted = 3; state->LastInted = 3; |