dyncom: Remove unnecessary initialization code.

Targeting ARM version variants was only a thing on armemu.

The reset routine also does basically the same thing as NewState.
This commit is contained in:
Lioncash 2015-07-25 21:55:52 -04:00
parent 3257d797e1
commit 03213f893e
4 changed files with 2 additions and 59 deletions

View file

@ -20,15 +20,8 @@
ARM_DynCom::ARM_DynCom(PrivilegeMode initial_mode) {
state = Common::make_unique<ARMul_State>();
ARMul_NewState(state.get());
ARMul_SelectProcessor(state.get(), ARM_v6_Prop | ARM_v5_Prop | ARM_v5e_Prop);
state->bigendSig = LOW;
state->NirqSig = HIGH;
// Reset the core to initial state
ARMul_Reset(state.get());
state->Emulate = RUN;
// Switch to the desired privilege mode.
switch_mode(state.get(), initial_mode);