summaryrefslogtreecommitdiffstats
path: root/src/core/arm/interpreter/arminit.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-04-21 02:47:26 +0200
committerbunnei <bunneidev@gmail.com>2015-04-21 02:47:26 +0200
commit4dbe358a713f4681e2926cc2023624580d892d79 (patch)
treefded294e2ca1076f9bdb52d6085b1fc620e17840 /src/core/arm/interpreter/arminit.cpp
parentMerge pull request #704 from citra-emu/archshift-patch-1 (diff)
parentdyncom: Remove more unused/unnecessary code (diff)
downloadyuzu-4dbe358a713f4681e2926cc2023624580d892d79.tar
yuzu-4dbe358a713f4681e2926cc2023624580d892d79.tar.gz
yuzu-4dbe358a713f4681e2926cc2023624580d892d79.tar.bz2
yuzu-4dbe358a713f4681e2926cc2023624580d892d79.tar.lz
yuzu-4dbe358a713f4681e2926cc2023624580d892d79.tar.xz
yuzu-4dbe358a713f4681e2926cc2023624580d892d79.tar.zst
yuzu-4dbe358a713f4681e2926cc2023624580d892d79.zip
Diffstat (limited to 'src/core/arm/interpreter/arminit.cpp')
-rw-r--r--src/core/arm/interpreter/arminit.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/core/arm/interpreter/arminit.cpp b/src/core/arm/interpreter/arminit.cpp
index 6fa028f49..6ac45c396 100644
--- a/src/core/arm/interpreter/arminit.cpp
+++ b/src/core/arm/interpreter/arminit.cpp
@@ -29,22 +29,8 @@ ARMul_State* ARMul_NewState(ARMul_State* state)
memset(state, 0, sizeof(ARMul_State));
state->Emulate = RUN;
- for (unsigned int i = 0; i < 16; i++) {
- state->Reg[i] = 0;
- for (unsigned int j = 0; j < 7; j++)
- state->RegBank[j][i] = 0;
- }
- for (unsigned int i = 0; i < 7; i++)
- state->Spsr[i] = 0;
-
state->Mode = USER32MODE;
- state->VectorCatch = 0;
- state->Aborted = false;
- state->Reseted = false;
- state->Inted = 3;
- state->LastInted = 3;
-
state->lateabtSig = HIGH;
state->bigendSig = LOW;
@@ -129,26 +115,18 @@ void ARMul_Reset(ARMul_State* state)
{
VFPInit(state);
- state->NextInstr = 0;
-
state->Reg[15] = 0;
state->Cpsr = INTBITS | SVC32MODE;
state->Mode = SVC32MODE;
-
state->Bank = SVCBANK;
- FLUSHPIPE;
ResetMPCoreCP15Registers(state);
- state->EndCondition = 0;
- state->ErrorCode = 0;
-
state->NresetSig = HIGH;
state->NfiqSig = HIGH;
state->NirqSig = HIGH;
state->NtransSig = (state->Mode & 3) ? HIGH : LOW;
state->abortSig = LOW;
- state->AbortAddr = 1;
state->NumInstrs = 0;
}