summaryrefslogtreecommitdiff
path: root/src/core/arm/skyeye_common
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot2015-08-11 22:32:39 +0100
committerGravatar Emmanuel Gil Peyrot2015-08-11 22:38:44 +0100
commit5115d0177ed9f77b091adbbbfd22f2f0a568a4bb (patch)
tree3a243eee2146980bcbd708a552ca082d172eeda7 /src/core/arm/skyeye_common
parentMerge pull request #1028 from aroulin/arm-disas-media-instr (diff)
downloadyuzu-5115d0177ed9f77b091adbbbfd22f2f0a568a4bb.tar.gz
yuzu-5115d0177ed9f77b091adbbbfd22f2f0a568a4bb.tar.xz
yuzu-5115d0177ed9f77b091adbbbfd22f2f0a568a4bb.zip
ARM Core, Video Core, CitraQt, Citrace: Use CommonTypes types instead of the standard u?int*_t types.
Diffstat (limited to 'src/core/arm/skyeye_common')
-rw-r--r--src/core/arm/skyeye_common/vfp/vfp.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/core/arm/skyeye_common/vfp/vfp.cpp b/src/core/arm/skyeye_common/vfp/vfp.cpp
index 26f303de4..0537135e2 100644
--- a/src/core/arm/skyeye_common/vfp/vfp.cpp
+++ b/src/core/arm/skyeye_common/vfp/vfp.cpp
@@ -21,6 +21,7 @@
21/* Note: this file handles interface with arm core and vfp registers */ 21/* Note: this file handles interface with arm core and vfp registers */
22 22
23#include "common/common_funcs.h" 23#include "common/common_funcs.h"
24#include "common/common_types.h"
24#include "common/logging/log.h" 25#include "common/logging/log.h"
25 26
26#include "core/arm/skyeye_common/armstate.h" 27#include "core/arm/skyeye_common/armstate.h"
@@ -110,30 +111,30 @@ void VMOVR(ARMul_State* state, u32 single, u32 d, u32 m)
110} 111}
111 112
112/* Miscellaneous functions */ 113/* Miscellaneous functions */
113int32_t vfp_get_float(ARMul_State* state, unsigned int reg) 114s32 vfp_get_float(ARMul_State* state, unsigned int reg)
114{ 115{
115 LOG_TRACE(Core_ARM11, "VFP get float: s%d=[%08x]\n", reg, state->ExtReg[reg]); 116 LOG_TRACE(Core_ARM11, "VFP get float: s%d=[%08x]\n", reg, state->ExtReg[reg]);
116 return state->ExtReg[reg]; 117 return state->ExtReg[reg];
117} 118}
118 119
119void vfp_put_float(ARMul_State* state, int32_t val, unsigned int reg) 120void vfp_put_float(ARMul_State* state, s32 val, unsigned int reg)
120{ 121{
121 LOG_TRACE(Core_ARM11, "VFP put float: s%d <= [%08x]\n", reg, val); 122 LOG_TRACE(Core_ARM11, "VFP put float: s%d <= [%08x]\n", reg, val);
122 state->ExtReg[reg] = val; 123 state->ExtReg[reg] = val;
123} 124}
124 125
125uint64_t vfp_get_double(ARMul_State* state, unsigned int reg) 126u64 vfp_get_double(ARMul_State* state, unsigned int reg)
126{ 127{
127 uint64_t result = ((uint64_t) state->ExtReg[reg*2+1])<<32 | state->ExtReg[reg*2]; 128 u64 result = ((u64) state->ExtReg[reg*2+1])<<32 | state->ExtReg[reg*2];
128 LOG_TRACE(Core_ARM11, "VFP get double: s[%d-%d]=[%016llx]\n", reg * 2 + 1, reg * 2, result); 129 LOG_TRACE(Core_ARM11, "VFP get double: s[%d-%d]=[%016llx]\n", reg * 2 + 1, reg * 2, result);
129 return result; 130 return result;
130} 131}
131 132
132void vfp_put_double(ARMul_State* state, uint64_t val, unsigned int reg) 133void vfp_put_double(ARMul_State* state, u64 val, unsigned int reg)
133{ 134{
134 LOG_TRACE(Core_ARM11, "VFP put double: s[%d-%d] <= [%08x-%08x]\n", reg * 2 + 1, reg * 2, (uint32_t)(val >> 32), (uint32_t)(val & 0xffffffff)); 135 LOG_TRACE(Core_ARM11, "VFP put double: s[%d-%d] <= [%08x-%08x]\n", reg * 2 + 1, reg * 2, (u32)(val >> 32), (u32)(val & 0xffffffff));
135 state->ExtReg[reg*2] = (uint32_t) (val & 0xffffffff); 136 state->ExtReg[reg*2] = (u32) (val & 0xffffffff);
136 state->ExtReg[reg*2+1] = (uint32_t) (val>>32); 137 state->ExtReg[reg*2+1] = (u32) (val>>32);
137} 138}
138 139
139/* 140/*