summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2014-05-16 20:04:13 -0400
committerGravatar bunnei2014-05-16 20:04:13 -0400
commita2804bf7010c2759668cfc36285a2b2a39bc695f (patch)
tree9d0823f4cd6afca9255080530a16e50aa0673dcd /src
parentadded maverick.cpp to ARM core from skyeye (diff)
downloadyuzu-a2804bf7010c2759668cfc36285a2b2a39bc695f.tar.gz
yuzu-a2804bf7010c2759668cfc36285a2b2a39bc695f.tar.xz
yuzu-a2804bf7010c2759668cfc36285a2b2a39bc695f.zip
- removed unused stubbed out code
- fixed some compiler issues with xscale_copro when porting code to Windows - fixed some #include's
Diffstat (limited to 'src')
-rw-r--r--src/core/arm/interpreter/armemu.cpp11
-rw-r--r--src/core/arm/interpreter/mmu/xscale_copro.cpp35
-rw-r--r--src/core/arm/interpreter/vfp/vfp.h4
-rw-r--r--src/core/arm/interpreter/vfp/vfpdouble.cpp5
-rw-r--r--src/core/arm/interpreter/vfp/vfpsingle.cpp5
5 files changed, 27 insertions, 33 deletions
diff --git a/src/core/arm/interpreter/armemu.cpp b/src/core/arm/interpreter/armemu.cpp
index 1af684fe3..87141653f 100644
--- a/src/core/arm/interpreter/armemu.cpp
+++ b/src/core/arm/interpreter/armemu.cpp
@@ -23,17 +23,6 @@
23#include "armemu.h" 23#include "armemu.h"
24#include "armos.h" 24#include "armos.h"
25 25
26void
27XScale_set_fsr_far(ARMul_State * state, ARMword fsr, ARMword _far)
28{
29 _dbg_assert_msg_(ARM11, false, "ImplementMe: XScale_set_fsr_far!");
30 //if (!state->is_XScale || (read_cp14_reg(10) & (1UL << 31)) == 0)
31 // return;
32 //
33 //write_cp15_reg(state, 5, 0, 0, fsr);
34 //write_cp15_reg(state, 6, 0, 0, _far);
35}
36
37#define ARMul_Debug(x,y,z) 0 // Disabling this /bunnei 26#define ARMul_Debug(x,y,z) 0 // Disabling this /bunnei
38 27
39//#include "skyeye_callback.h" 28//#include "skyeye_callback.h"
diff --git a/src/core/arm/interpreter/mmu/xscale_copro.cpp b/src/core/arm/interpreter/mmu/xscale_copro.cpp
index a006cb102..433ce8e02 100644
--- a/src/core/arm/interpreter/mmu/xscale_copro.cpp
+++ b/src/core/arm/interpreter/mmu/xscale_copro.cpp
@@ -412,7 +412,8 @@ unsigned xscale_cp15_write_reg (ARMul_State * state, unsigned reg,
412 return 0; 412 return 0;
413} 413}
414 414
415int xscale_cp15_init (ARMul_State * state) 415unsigned
416xscale_cp15_init (ARMul_State * state)
416{ 417{
417 xscale_mmu_desc_t *desc; 418 xscale_mmu_desc_t *desc;
418 cache_desc_t *c_desc; 419 cache_desc_t *c_desc;
@@ -489,7 +490,8 @@ int xscale_cp15_init (ARMul_State * state)
489 return -1; 490 return -1;
490} 491}
491 492
492void xscale_cp15_exit (ARMul_State * state) 493unsigned
494xscale_cp15_exit (ARMul_State * state)
493{ 495{
494 //mmu_rb_exit(RB()); 496 //mmu_rb_exit(RB());
495 mmu_wb_exit (WB ()); 497 mmu_wb_exit (WB ());
@@ -498,6 +500,7 @@ void xscale_cp15_exit (ARMul_State * state)
498 mmu_tlb_exit (D_TLB ()); 500 mmu_tlb_exit (D_TLB ());
499 mmu_cache_exit (I_CACHE ()); 501 mmu_cache_exit (I_CACHE ());
500 mmu_tlb_exit (I_TLB ()); 502 mmu_tlb_exit (I_TLB ());
503 return 0;
501}; 504};
502 505
503 506
@@ -1372,17 +1375,17 @@ static int xscale_mmu_v2p_dbct (ARMul_State * state, ARMword virt_addr,
1372//AJ2D-------------------------------------------------------------------------- 1375//AJ2D--------------------------------------------------------------------------
1373 1376
1374/*xscale mmu_ops_t*/ 1377/*xscale mmu_ops_t*/
1375mmu_ops_t xscale_mmu_ops = { 1378//mmu_ops_t xscale_mmu_ops = {
1376 xscale_cp15_init, 1379// xscale_cp15_init,
1377 xscale_cp15_exit, 1380// xscale_cp15_exit,
1378 xscale_mmu_read_byte, 1381// xscale_mmu_read_byte,
1379 xscale_mmu_write_byte, 1382// xscale_mmu_write_byte,
1380 xscale_mmu_read_halfword, 1383// xscale_mmu_read_halfword,
1381 xscale_mmu_write_halfword, 1384// xscale_mmu_write_halfword,
1382 xscale_mmu_read_word, 1385// xscale_mmu_read_word,
1383 xscale_mmu_write_word, 1386// xscale_mmu_write_word,
1384 xscale_mmu_load_instr, xscale_mmu_mcr, xscale_mmu_mrc, 1387// xscale_mmu_load_instr, xscale_mmu_mcr, xscale_mmu_mrc,
1385//teawater add for arm2x86 2005.06.24------------------------------------------- 1388////teawater add for arm2x86 2005.06.24-------------------------------------------
1386 xscale_mmu_v2p_dbct, 1389// xscale_mmu_v2p_dbct,
1387//AJ2D-------------------------------------------------------------------------- 1390////AJ2D--------------------------------------------------------------------------
1388}; 1391//};
diff --git a/src/core/arm/interpreter/vfp/vfp.h b/src/core/arm/interpreter/vfp/vfp.h
index e16076310..ba23bd6ec 100644
--- a/src/core/arm/interpreter/vfp/vfp.h
+++ b/src/core/arm/interpreter/vfp/vfp.h
@@ -84,8 +84,8 @@ void vfp_put_float(ARMul_State * state, int32_t val, unsigned int reg);
84uint64_t vfp_get_double(ARMul_State * state, unsigned int reg); 84uint64_t vfp_get_double(ARMul_State * state, unsigned int reg);
85void vfp_put_double(ARMul_State * state, uint64_t val, unsigned int reg); 85void vfp_put_double(ARMul_State * state, uint64_t val, unsigned int reg);
86void vfp_raise_exceptions(ARMul_State * state, uint32_t exceptions, uint32_t inst, uint32_t fpscr); 86void vfp_raise_exceptions(ARMul_State * state, uint32_t exceptions, uint32_t inst, uint32_t fpscr);
87extern uint32_t vfp_single_cpdo(ARMul_State * state, uint32_t inst, uint32_t fpscr); 87u32 vfp_single_cpdo(ARMul_State* state, u32 inst, u32 fpscr);
88extern uint32_t vfp_double_cpdo(ARMul_State * state, uint32_t inst, uint32_t fpscr); 88u32 vfp_double_cpdo(ARMul_State* state, u32 inst, u32 fpscr);
89 89
90/* MRC */ 90/* MRC */
91inline void VMRS(ARMul_State * state, ARMword reg, ARMword Rt, ARMword *value); 91inline void VMRS(ARMul_State * state, ARMword reg, ARMword Rt, ARMword *value);
diff --git a/src/core/arm/interpreter/vfp/vfpdouble.cpp b/src/core/arm/interpreter/vfp/vfpdouble.cpp
index 37fd28829..7e79ecafb 100644
--- a/src/core/arm/interpreter/vfp/vfpdouble.cpp
+++ b/src/core/arm/interpreter/vfp/vfpdouble.cpp
@@ -51,8 +51,9 @@
51 * =========================================================================== 51 * ===========================================================================
52 */ 52 */
53 53
54#include "vfp_helper.h" 54#include "core/arm/interpreter/vfp/vfp.h"
55#include "asm_vfp.h" 55#include "core/arm/interpreter/vfp/vfp_helper.h"
56#include "core/arm/interpreter/vfp/asm_vfp.h"
56 57
57static struct vfp_double vfp_double_default_qnan = { 58static struct vfp_double vfp_double_default_qnan = {
58 //.exponent = 2047, 59 //.exponent = 2047,
diff --git a/src/core/arm/interpreter/vfp/vfpsingle.cpp b/src/core/arm/interpreter/vfp/vfpsingle.cpp
index 24c0ded2b..34de030bf 100644
--- a/src/core/arm/interpreter/vfp/vfpsingle.cpp
+++ b/src/core/arm/interpreter/vfp/vfpsingle.cpp
@@ -51,8 +51,9 @@
51 * =========================================================================== 51 * ===========================================================================
52 */ 52 */
53 53
54#include "vfp_helper.h" 54#include "core/arm/interpreter/vfp/vfp_helper.h"
55#include "asm_vfp.h" 55#include "core/arm/interpreter/vfp/asm_vfp.h"
56#include "core/arm/interpreter/vfp/vfp.h"
56 57
57static struct vfp_single vfp_single_default_qnan = { 58static struct vfp_single vfp_single_default_qnan = {
58 //.exponent = 255, 59 //.exponent = 255,