diff options
Diffstat (limited to 'src/core/arm/interpreter/arminit.cpp')
| -rw-r--r-- | src/core/arm/interpreter/arminit.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
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() | |||
| 63 | \***************************************************************************/ | 63 | \***************************************************************************/ |
| 64 | ARMul_State* ARMul_NewState(ARMul_State* state) | 64 | ARMul_State* ARMul_NewState(ARMul_State* state) |
| 65 | { | 65 | { |
| 66 | unsigned i, j; | ||
| 67 | |||
| 68 | memset (state, 0, sizeof (ARMul_State)); | 66 | memset (state, 0, sizeof (ARMul_State)); |
| 69 | 67 | ||
| 70 | state->Emulate = RUN; | 68 | state->Emulate = RUN; |
| 71 | for (i = 0; i < 16; i++) { | 69 | for (unsigned int i = 0; i < 16; i++) { |
| 72 | state->Reg[i] = 0; | 70 | state->Reg[i] = 0; |
| 73 | for (j = 0; j < 7; j++) | 71 | for (unsigned int j = 0; j < 7; j++) |
| 74 | state->RegBank[j][i] = 0; | 72 | state->RegBank[j][i] = 0; |
| 75 | } | 73 | } |
| 76 | for (i = 0; i < 7; i++) | 74 | for (unsigned int i = 0; i < 7; i++) |
| 77 | state->Spsr[i] = 0; | 75 | state->Spsr[i] = 0; |
| 76 | |||
| 78 | state->Mode = 0; | 77 | state->Mode = 0; |
| 79 | 78 | ||
| 80 | state->Debug = FALSE; | ||
| 81 | state->VectorCatch = 0; | 79 | state->VectorCatch = 0; |
| 82 | state->Aborted = FALSE; | 80 | state->Aborted = false; |
| 83 | state->Reseted = FALSE; | 81 | state->Reseted = false; |
| 84 | state->Inted = 3; | 82 | state->Inted = 3; |
| 85 | state->LastInted = 3; | 83 | state->LastInted = 3; |
| 86 | 84 | ||