diff options
| author | 2015-05-07 21:07:44 -0400 | |
|---|---|---|
| committer | 2015-05-07 21:07:44 -0400 | |
| commit | 3effb80f264c84f6b1ddf500953647f0b682c5f7 (patch) | |
| tree | bc3be06b390d761ecb69beae144ff68b4c0e6c23 /src/core/arm/dyncom | |
| parent | Merge pull request #725 from yuriks/remove-common-crap (diff) | |
| parent | Remove unnecessary dyncom header files (diff) | |
| download | yuzu-3effb80f264c84f6b1ddf500953647f0b682c5f7.tar.gz yuzu-3effb80f264c84f6b1ddf500953647f0b682c5f7.tar.xz yuzu-3effb80f264c84f6b1ddf500953647f0b682c5f7.zip | |
Merge pull request #729 from lioncash/garb
Remove unnecessary dyncom header files
Diffstat (limited to 'src/core/arm/dyncom')
| -rw-r--r-- | src/core/arm/dyncom/arm_dyncom.cpp | 5 | ||||
| -rw-r--r-- | src/core/arm/dyncom/arm_dyncom_thumb.cpp | 6 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom.cpp b/src/core/arm/dyncom/arm_dyncom.cpp index 42a63e46f..0072ae533 100644 --- a/src/core/arm/dyncom/arm_dyncom.cpp +++ b/src/core/arm/dyncom/arm_dyncom.cpp | |||
| @@ -16,10 +16,6 @@ | |||
| 16 | #include "core/core.h" | 16 | #include "core/core.h" |
| 17 | #include "core/core_timing.h" | 17 | #include "core/core_timing.h" |
| 18 | 18 | ||
| 19 | const static cpu_config_t s_arm11_cpu_info = { | ||
| 20 | "armv6", "arm11", 0x0007b000, 0x0007f000, NONCACHE | ||
| 21 | }; | ||
| 22 | |||
| 23 | ARM_DynCom::ARM_DynCom(PrivilegeMode initial_mode) { | 19 | ARM_DynCom::ARM_DynCom(PrivilegeMode initial_mode) { |
| 24 | state = Common::make_unique<ARMul_State>(); | 20 | state = Common::make_unique<ARMul_State>(); |
| 25 | 21 | ||
| @@ -27,7 +23,6 @@ ARM_DynCom::ARM_DynCom(PrivilegeMode initial_mode) { | |||
| 27 | ARMul_SelectProcessor(state.get(), ARM_v6_Prop | ARM_v5_Prop | ARM_v5e_Prop); | 23 | ARMul_SelectProcessor(state.get(), ARM_v6_Prop | ARM_v5_Prop | ARM_v5e_Prop); |
| 28 | 24 | ||
| 29 | state->abort_model = ABORT_BASE_RESTORED; | 25 | state->abort_model = ABORT_BASE_RESTORED; |
| 30 | state->cpu = (cpu_config_t*)&s_arm11_cpu_info; | ||
| 31 | 26 | ||
| 32 | state->bigendSig = LOW; | 27 | state->bigendSig = LOW; |
| 33 | state->lateabtSig = LOW; | 28 | state->lateabtSig = LOW; |
diff --git a/src/core/arm/dyncom/arm_dyncom_thumb.cpp b/src/core/arm/dyncom/arm_dyncom_thumb.cpp index bfb45f104..08b5c0b77 100644 --- a/src/core/arm/dyncom/arm_dyncom_thumb.cpp +++ b/src/core/arm/dyncom/arm_dyncom_thumb.cpp | |||
| @@ -6,8 +6,6 @@ | |||
| 6 | // ARM instruction, and using the existing ARM simulator. | 6 | // ARM instruction, and using the existing ARM simulator. |
| 7 | 7 | ||
| 8 | #include "core/arm/dyncom/arm_dyncom_thumb.h" | 8 | #include "core/arm/dyncom/arm_dyncom_thumb.h" |
| 9 | #include "core/arm/skyeye_common/armos.h" | ||
| 10 | #include "core/arm/skyeye_common/skyeye_defs.h" | ||
| 11 | 9 | ||
| 12 | // Decode a 16bit Thumb instruction. The instruction is in the low 16-bits of the tinstr field, | 10 | // Decode a 16bit Thumb instruction. The instruction is in the low 16-bits of the tinstr field, |
| 13 | // with the following Thumb instruction held in the high 16-bits. Passing in two Thumb instructions | 11 | // with the following Thumb instruction held in the high 16-bits. Passing in two Thumb instructions |
| @@ -288,7 +286,7 @@ tdstate thumb_translate(u32 addr, u32 instr, u32* ainstr, u32* inst_size) { | |||
| 288 | : 0xE28DDF00) // ADD | 286 | : 0xE28DDF00) // ADD |
| 289 | |(tinstr & 0x007F); // off7 | 287 | |(tinstr & 0x007F); // off7 |
| 290 | } else if ((tinstr & 0x0F00) == 0x0e00) | 288 | } else if ((tinstr & 0x0F00) == 0x0e00) |
| 291 | *ainstr = 0xEF000000 | SWI_Breakpoint; | 289 | *ainstr = 0xEF000000 | 0x180000; // base | BKPT mask |
| 292 | else { | 290 | else { |
| 293 | static const ARMword subset[4] = { | 291 | static const ARMword subset[4] = { |
| 294 | 0xE92D0000, // STMDB sp!,{rlist} | 292 | 0xE92D0000, // STMDB sp!,{rlist} |
| @@ -320,7 +318,7 @@ tdstate thumb_translate(u32 addr, u32 instr, u32* ainstr, u32* inst_size) { | |||
| 320 | *ainstr |= ((tinstr & 0x00FF) << 16); | 318 | *ainstr |= ((tinstr & 0x00FF) << 16); |
| 321 | // New breakpoint value. See gdb/arm-tdep.c | 319 | // New breakpoint value. See gdb/arm-tdep.c |
| 322 | else if ((tinstr & 0x00FF) == 0xFE) | 320 | else if ((tinstr & 0x00FF) == 0xFE) |
| 323 | *ainstr |= SWI_Breakpoint; | 321 | *ainstr |= 0x180000; // base |= BKPT mask |
| 324 | else | 322 | else |
| 325 | *ainstr |= (tinstr & 0x00FF); | 323 | *ainstr |= (tinstr & 0x00FF); |
| 326 | } else if ((tinstr & 0x0F00) != 0x0E00) | 324 | } else if ((tinstr & 0x0F00) != 0x0E00) |