summaryrefslogtreecommitdiff
path: root/src/core/arm/interpreter/arminit.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2015-01-31 21:44:35 -0500
committerGravatar Lioncash2015-01-31 21:55:34 -0500
commit3f00dd911780552c77575d3176860f576ebc0fdb (patch)
treec80ea3a4035a20810fb5914f3bfc99f392376939 /src/core/arm/interpreter/arminit.cpp
parentMerge pull request #522 from lioncash/adios (diff)
downloadyuzu-3f00dd911780552c77575d3176860f576ebc0fdb.tar.gz
yuzu-3f00dd911780552c77575d3176860f576ebc0fdb.tar.xz
yuzu-3f00dd911780552c77575d3176860f576ebc0fdb.zip
arm: Clean up ARMul_State
Remove unnecessary/unused struct variables.
Diffstat (limited to 'src/core/arm/interpreter/arminit.cpp')
-rw-r--r--src/core/arm/interpreter/arminit.cpp29
1 files changed, 9 insertions, 20 deletions
diff --git a/src/core/arm/interpreter/arminit.cpp b/src/core/arm/interpreter/arminit.cpp
index a0e041fa0..a52d14960 100644
--- a/src/core/arm/interpreter/arminit.cpp
+++ b/src/core/arm/interpreter/arminit.cpp
@@ -95,12 +95,6 @@ ARMul_State* ARMul_NewState(ARMul_State* state)
95 state->lateabtSig = HIGH; 95 state->lateabtSig = HIGH;
96 state->bigendSig = LOW; 96 state->bigendSig = LOW;
97 97
98 //chy:2003-08-19
99 state->CP14R0_CCD = -1;
100
101 memset(&state->exclusive_tag_array[0], 0xFF, sizeof(state->exclusive_tag_array[0]) * 128);
102 state->exclusive_access_state = 0;
103
104 return state; 98 return state;
105} 99}
106 100
@@ -118,15 +112,15 @@ void ARMul_SelectProcessor(ARMul_State* state, unsigned properties)
118 state->data32Sig = HIGH; 112 state->data32Sig = HIGH;
119 } 113 }
120 114
121 state->is_v4 = (properties & (ARM_v4_Prop | ARM_v5_Prop)) ? HIGH : LOW; 115 state->is_v4 = (properties & (ARM_v4_Prop | ARM_v5_Prop)) != 0;
122 state->is_v5 = (properties & ARM_v5_Prop) ? HIGH : LOW; 116 state->is_v5 = (properties & ARM_v5_Prop) != 0;
123 state->is_v5e = (properties & ARM_v5e_Prop) ? HIGH : LOW; 117 state->is_v5e = (properties & ARM_v5e_Prop) != 0;
124 state->is_XScale = (properties & ARM_XScale_Prop) ? HIGH : LOW; 118 state->is_XScale = (properties & ARM_XScale_Prop) != 0;
125 state->is_iWMMXt = (properties & ARM_iWMMXt_Prop) ? HIGH : LOW; 119 state->is_iWMMXt = (properties & ARM_iWMMXt_Prop) != 0;
126 state->is_v6 = (properties & ARM_v6_Prop) ? HIGH : LOW; 120 state->is_v6 = (properties & ARM_v6_Prop) != 0;
127 state->is_ep9312 = (properties & ARM_ep9312_Prop) ? HIGH : LOW; 121 state->is_ep9312 = (properties & ARM_ep9312_Prop) != 0;
128 state->is_pxa27x = (properties & ARM_PXA27X_Prop) ? HIGH : LOW; 122 state->is_pxa27x = (properties & ARM_PXA27X_Prop) != 0;
129 state->is_v7 = (properties & ARM_v7_Prop) ? HIGH : LOW; 123 state->is_v7 = (properties & ARM_v7_Prop) != 0;
130 124
131 /* Only initialse the coprocessor support once we 125 /* Only initialse the coprocessor support once we
132 know what kind of chip we are dealing with. */ 126 know what kind of chip we are dealing with. */
@@ -164,9 +158,4 @@ void ARMul_Reset(ARMul_State* state)
164 state->AbortAddr = 1; 158 state->AbortAddr = 1;
165 159
166 state->NumInstrs = 0; 160 state->NumInstrs = 0;
167 state->NumNcycles = 0;
168 state->NumScycles = 0;
169 state->NumIcycles = 0;
170 state->NumCcycles = 0;
171 state->NumFcycles = 0;
172} 161}