summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2015-02-12 11:30:25 -0500
committerGravatar Lioncash2015-02-12 11:30:28 -0500
commite3f5c6366cba3548c7676fc3a08dc0d736a227f4 (patch)
treeffa45a6357978ab4ea387ff6287b26a17408fcfe /src
parentMerge pull request #563 from lioncash/ext (diff)
downloadyuzu-e3f5c6366cba3548c7676fc3a08dc0d736a227f4.tar.gz
yuzu-e3f5c6366cba3548c7676fc3a08dc0d736a227f4.tar.xz
yuzu-e3f5c6366cba3548c7676fc3a08dc0d736a227f4.zip
arm: Remove ARMul_EmulateInit
This was only used for armemu, which has since been removed. Removed components related to this as well.
Diffstat (limited to 'src')
-rw-r--r--src/core/arm/dyncom/arm_dyncom.cpp7
-rw-r--r--src/core/arm/interpreter/arminit.cpp40
-rw-r--r--src/core/arm/skyeye_common/armdefs.h1
-rw-r--r--src/core/arm/skyeye_common/armemu.h8
4 files changed, 1 insertions, 55 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom.cpp b/src/core/arm/dyncom/arm_dyncom.cpp
index 1977112dd..c4af85242 100644
--- a/src/core/arm/dyncom/arm_dyncom.cpp
+++ b/src/core/arm/dyncom/arm_dyncom.cpp
@@ -18,10 +18,7 @@ const static cpu_config_t s_arm11_cpu_info = {
18ARM_DynCom::ARM_DynCom() { 18ARM_DynCom::ARM_DynCom() {
19 state = std::unique_ptr<ARMul_State>(new ARMul_State); 19 state = std::unique_ptr<ARMul_State>(new ARMul_State);
20 20
21 ARMul_EmulateInit(); 21 ARMul_NewState(state.get());
22 memset(state.get(), 0, sizeof(ARMul_State));
23
24 ARMul_NewState((ARMul_State*)state.get());
25 22
26 state->abort_model = ABORT_BASE_RESTORED; 23 state->abort_model = ABORT_BASE_RESTORED;
27 state->cpu = (cpu_config_t*)&s_arm11_cpu_info; 24 state->cpu = (cpu_config_t*)&s_arm11_cpu_info;
@@ -41,8 +38,6 @@ ARM_DynCom::ARM_DynCom() {
41 state->NirqSig = HIGH; 38 state->NirqSig = HIGH;
42 39
43 VFPInit(state.get()); // Initialize the VFP 40 VFPInit(state.get()); // Initialize the VFP
44
45 ARMul_EmulateInit();
46} 41}
47 42
48ARM_DynCom::~ARM_DynCom() { 43ARM_DynCom::~ARM_DynCom() {
diff --git a/src/core/arm/interpreter/arminit.cpp b/src/core/arm/interpreter/arminit.cpp
index e7545728e..0c0ce6c91 100644
--- a/src/core/arm/interpreter/arminit.cpp
+++ b/src/core/arm/interpreter/arminit.cpp
@@ -19,46 +19,6 @@
19#include "core/arm/skyeye_common/armemu.h" 19#include "core/arm/skyeye_common/armemu.h"
20 20
21/***************************************************************************\ 21/***************************************************************************\
22* Definitions for the emulator architecture *
23\***************************************************************************/
24
25void ARMul_EmulateInit();
26ARMul_State* ARMul_NewState(ARMul_State* state);
27void ARMul_Reset (ARMul_State* state);
28
29unsigned ARMul_MultTable[32] = {
30 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,
31 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15, 16, 16, 16
32};
33ARMword ARMul_ImmedTable[4096]; // immediate DP LHS values
34char ARMul_BitList[256]; // number of bits in a byte table
35
36/***************************************************************************\
37* Call this routine once to set up the emulator's tables. *
38\***************************************************************************/
39void ARMul_EmulateInit()
40{
41 unsigned int i, j;
42
43 // the values of 12 bit dp rhs's
44 for (i = 0; i < 4096; i++) {
45 ARMul_ImmedTable[i] = ROTATER (i & 0xffL, (i >> 7L) & 0x1eL);
46 }
47
48 // how many bits in LSM
49 for (i = 0; i < 256; ARMul_BitList[i++] = 0);
50 for (j = 1; j < 256; j <<= 1)
51 for (i = 0; i < 256; i++)
52 if ((i & j) > 0)
53 ARMul_BitList[i]++;
54
55 // you always need 4 times these values
56 for (i = 0; i < 256; i++)
57 ARMul_BitList[i] *= 4;
58
59}
60
61/***************************************************************************\
62* Returns a new instantiation of the ARMulator's state * 22* Returns a new instantiation of the ARMulator's state *
63\***************************************************************************/ 23\***************************************************************************/
64ARMul_State* ARMul_NewState(ARMul_State* state) 24ARMul_State* ARMul_NewState(ARMul_State* state)
diff --git a/src/core/arm/skyeye_common/armdefs.h b/src/core/arm/skyeye_common/armdefs.h
index a827184fc..02f54f385 100644
--- a/src/core/arm/skyeye_common/armdefs.h
+++ b/src/core/arm/skyeye_common/armdefs.h
@@ -294,7 +294,6 @@ enum {
294/***************************************************************************\ 294/***************************************************************************\
295* Definitons of things in the emulator * 295* Definitons of things in the emulator *
296\***************************************************************************/ 296\***************************************************************************/
297extern void ARMul_EmulateInit();
298extern void ARMul_Reset(ARMul_State* state); 297extern void ARMul_Reset(ARMul_State* state);
299extern ARMul_State* ARMul_NewState(ARMul_State* state); 298extern ARMul_State* ARMul_NewState(ARMul_State* state);
300 299
diff --git a/src/core/arm/skyeye_common/armemu.h b/src/core/arm/skyeye_common/armemu.h
index 5d4c06837..2467f4319 100644
--- a/src/core/arm/skyeye_common/armemu.h
+++ b/src/core/arm/skyeye_common/armemu.h
@@ -95,14 +95,6 @@ enum {
95 95
96#define FLUSHPIPE state->NextInstr |= PRIMEPIPE 96#define FLUSHPIPE state->NextInstr |= PRIMEPIPE
97 97
98// Macro to rotate n right by b bits.
99#define ROTATER(n, b) (((n) >> (b)) | ((n) << (32 - (b))))
100
101// Stuff that is shared across modes.
102extern unsigned ARMul_MultTable[]; // Number of I cycles for a mult.
103extern ARMword ARMul_ImmedTable[]; // Immediate DP LHS values.
104extern char ARMul_BitList[]; // Number of bits in a byte table.
105
106// Coprocessor support functions. 98// Coprocessor support functions.
107extern void ARMul_CoProInit(ARMul_State*); 99extern void ARMul_CoProInit(ARMul_State*);
108extern void ARMul_CoProExit(ARMul_State*); 100extern void ARMul_CoProExit(ARMul_State*);