diff options
| author | 2015-02-11 13:39:49 -0500 | |
|---|---|---|
| committer | 2015-02-11 13:39:49 -0500 | |
| commit | 54de697084449b2e524b028cb95df3bca72d29c2 (patch) | |
| tree | 706e7dc88a62bc39eac92eab76ff5758bf574db8 /src/core/arm/interpreter/arminit.cpp | |
| parent | Merge pull request #559 from lioncash/clean (diff) | |
| parent | arm: Remove ARM26 support. (diff) | |
| download | yuzu-54de697084449b2e524b028cb95df3bca72d29c2.tar.gz yuzu-54de697084449b2e524b028cb95df3bca72d29c2.tar.xz yuzu-54de697084449b2e524b028cb95df3bca72d29c2.zip | |
Merge pull request #560 from lioncash/arm32
arm: Remove ARM26 support.
Diffstat (limited to 'src/core/arm/interpreter/arminit.cpp')
| -rw-r--r-- | src/core/arm/interpreter/arminit.cpp | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/src/core/arm/interpreter/arminit.cpp b/src/core/arm/interpreter/arminit.cpp index b7dd5e38d..e7545728e 100644 --- a/src/core/arm/interpreter/arminit.cpp +++ b/src/core/arm/interpreter/arminit.cpp | |||
| @@ -82,14 +82,6 @@ ARMul_State* ARMul_NewState(ARMul_State* state) | |||
| 82 | state->Inted = 3; | 82 | state->Inted = 3; |
| 83 | state->LastInted = 3; | 83 | state->LastInted = 3; |
| 84 | 84 | ||
| 85 | #ifdef ARM61 | ||
| 86 | state->prog32Sig = LOW; | ||
| 87 | state->data32Sig = LOW; | ||
| 88 | #else | ||
| 89 | state->prog32Sig = HIGH; | ||
| 90 | state->data32Sig = HIGH; | ||
| 91 | #endif | ||
| 92 | |||
| 93 | state->lateabtSig = HIGH; | 85 | state->lateabtSig = HIGH; |
| 94 | state->bigendSig = LOW; | 86 | state->bigendSig = LOW; |
| 95 | 87 | ||
| @@ -102,14 +94,6 @@ ARMul_State* ARMul_NewState(ARMul_State* state) | |||
| 102 | 94 | ||
| 103 | void ARMul_SelectProcessor(ARMul_State* state, unsigned properties) | 95 | void ARMul_SelectProcessor(ARMul_State* state, unsigned properties) |
| 104 | { | 96 | { |
| 105 | if (properties & ARM_Fix26_Prop) { | ||
| 106 | state->prog32Sig = LOW; | ||
| 107 | state->data32Sig = LOW; | ||
| 108 | } else { | ||
| 109 | state->prog32Sig = HIGH; | ||
| 110 | state->data32Sig = HIGH; | ||
| 111 | } | ||
| 112 | |||
| 113 | state->is_v4 = (properties & (ARM_v4_Prop | ARM_v5_Prop)) != 0; | 97 | state->is_v4 = (properties & (ARM_v4_Prop | ARM_v5_Prop)) != 0; |
| 114 | state->is_v5 = (properties & ARM_v5_Prop) != 0; | 98 | state->is_v5 = (properties & ARM_v5_Prop) != 0; |
| 115 | state->is_v5e = (properties & ARM_v5e_Prop) != 0; | 99 | state->is_v5e = (properties & ARM_v5e_Prop) != 0; |
| @@ -132,15 +116,10 @@ void ARMul_SelectProcessor(ARMul_State* state, unsigned properties) | |||
| 132 | void ARMul_Reset(ARMul_State* state) | 116 | void ARMul_Reset(ARMul_State* state) |
| 133 | { | 117 | { |
| 134 | state->NextInstr = 0; | 118 | state->NextInstr = 0; |
| 135 | if (state->prog32Sig) { | 119 | |
| 136 | state->Reg[15] = 0; | 120 | state->Reg[15] = 0; |
| 137 | state->Cpsr = INTBITS | SVC32MODE; | 121 | state->Cpsr = INTBITS | SVC32MODE; |
| 138 | state->Mode = SVC32MODE; | 122 | state->Mode = SVC32MODE; |
| 139 | } else { | ||
| 140 | state->Reg[15] = R15INTBITS | SVC26MODE; | ||
| 141 | state->Cpsr = INTBITS | SVC26MODE; | ||
| 142 | state->Mode = SVC26MODE; | ||
| 143 | } | ||
| 144 | 123 | ||
| 145 | state->Bank = SVCBANK; | 124 | state->Bank = SVCBANK; |
| 146 | FLUSHPIPE; | 125 | FLUSHPIPE; |