summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar bunnei2015-02-01 00:28:50 -0500
committerGravatar bunnei2015-02-01 00:28:50 -0500
commitc8628f5d5611658cf1c769367830bc16d4ecfd5c (patch)
tree7756176ba9462105d4f824bb3f14dc6ae1696405 /src/core
parentMerge pull request #524 from lioncash/state (diff)
parentvfp: Get rid of some compile warnings (diff)
downloadyuzu-c8628f5d5611658cf1c769367830bc16d4ecfd5c.tar.gz
yuzu-c8628f5d5611658cf1c769367830bc16d4ecfd5c.tar.xz
yuzu-c8628f5d5611658cf1c769367830bc16d4ecfd5c.zip
Merge pull request #525 from lioncash/armwarn
vfp: Get rid of some compile warnings
Diffstat (limited to 'src/core')
-rw-r--r--src/core/arm/skyeye_common/vfp/vfp.cpp6
-rw-r--r--src/core/arm/skyeye_common/vfp/vfp_helper.h3
2 files changed, 3 insertions, 6 deletions
diff --git a/src/core/arm/skyeye_common/vfp/vfp.cpp b/src/core/arm/skyeye_common/vfp/vfp.cpp
index 5f3dd4b47..563247c78 100644
--- a/src/core/arm/skyeye_common/vfp/vfp.cpp
+++ b/src/core/arm/skyeye_common/vfp/vfp.cpp
@@ -471,7 +471,7 @@ int VSTR(ARMul_State* state, int type, ARMword instr, ARMword* value)
471int VPUSH(ARMul_State* state, int type, ARMword instr, ARMword* value) 471int VPUSH(ARMul_State* state, int type, ARMword instr, ARMword* value)
472{ 472{
473 static int i = 0; 473 static int i = 0;
474 static int single_regs, add, wback, d, n, imm32, regs; 474 static int single_regs, d, imm32, regs;
475 if (type == ARMul_FIRST) 475 if (type == ARMul_FIRST)
476 { 476 {
477 single_regs = BIT(instr, 8) == 0; // Single precision 477 single_regs = BIT(instr, 8) == 0; // Single precision
@@ -562,7 +562,7 @@ int VSTM(ARMul_State* state, int type, ARMword instr, ARMword* value)
562int VPOP(ARMul_State* state, int type, ARMword instr, ARMword value) 562int VPOP(ARMul_State* state, int type, ARMword instr, ARMword value)
563{ 563{
564 static int i = 0; 564 static int i = 0;
565 static int single_regs, add, wback, d, n, imm32, regs; 565 static int single_regs, d, imm32, regs;
566 if (type == ARMul_FIRST) 566 if (type == ARMul_FIRST)
567 { 567 {
568 single_regs = BIT(instr, 8) == 0; // Single precision 568 single_regs = BIT(instr, 8) == 0; // Single precision
@@ -759,8 +759,6 @@ void vfp_put_double(arm_core_t* state, uint64_t val, unsigned int reg)
759 */ 759 */
760void vfp_raise_exceptions(ARMul_State* state, u32 exceptions, u32 inst, u32 fpscr) 760void vfp_raise_exceptions(ARMul_State* state, u32 exceptions, u32 inst, u32 fpscr)
761{ 761{
762 int si_code = 0;
763
764 LOG_TRACE(Core_ARM11, "VFP: raising exceptions %08x\n", exceptions); 762 LOG_TRACE(Core_ARM11, "VFP: raising exceptions %08x\n", exceptions);
765 763
766 if (exceptions == VFP_EXCEPTION_ERROR) { 764 if (exceptions == VFP_EXCEPTION_ERROR) {
diff --git a/src/core/arm/skyeye_common/vfp/vfp_helper.h b/src/core/arm/skyeye_common/vfp/vfp_helper.h
index 55e63f553..dec36c692 100644
--- a/src/core/arm/skyeye_common/vfp/vfp_helper.h
+++ b/src/core/arm/skyeye_common/vfp/vfp_helper.h
@@ -43,7 +43,6 @@
43#define pr_info //printf 43#define pr_info //printf
44#define pr_debug //printf 44#define pr_debug //printf
45 45
46static u32 fls(ARMword x);
47#define do_div(n, base) {n/=base;} 46#define do_div(n, base) {n/=base;}
48 47
49/* From vfpinstr.h */ 48/* From vfpinstr.h */
@@ -501,7 +500,7 @@ struct op {
501 u32 flags; 500 u32 flags;
502}; 501};
503 502
504static u32 fls(ARMword x) 503static inline u32 fls(ARMword x)
505{ 504{
506 int r = 32; 505 int r = 32;
507 506