diff options
author | Lioncash <mathew1800@gmail.com> | 2014-12-28 18:41:40 -0500 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2014-12-28 18:55:01 -0500 |
commit | 9c7f2570f774a05bfd085264c5db20074cd1f8d2 (patch) | |
tree | 21e5a73a28e0dbbc5e89b34d376e7a3509fb4fdb /src/core/arm/skyeye_common/vfp/vfp.h | |
parent | 4bf803579f52633e7e9f02c0fc99116f89331b8d (diff) |
vfp: Actually make the code somewhat readable
Diffstat (limited to 'src/core/arm/skyeye_common/vfp/vfp.h')
-rw-r--r-- | src/core/arm/skyeye_common/vfp/vfp.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/arm/skyeye_common/vfp/vfp.h b/src/core/arm/skyeye_common/vfp/vfp.h index 7256701f..f9e8d521 100644 --- a/src/core/arm/skyeye_common/vfp/vfp.h +++ b/src/core/arm/skyeye_common/vfp/vfp.h @@ -27,6 +27,12 @@ #include "core/arm/skyeye_common/vfp/vfp_helper.h" /* for references to cdp SoftFloat functions */ +#define VFP_DEBUG_TRANSLATE DBG("in func %s, %x\n", __FUNCTION__, inst); +#define VFP_DEBUG_UNIMPLEMENTED(x) printf("in func %s, " #x " unimplemented\n", __FUNCTION__); exit(-1); +#define VFP_DEBUG_UNTESTED(x) printf("in func %s, " #x " untested\n", __FUNCTION__); +#define CHECK_VFP_ENABLED +#define CHECK_VFP_CDP_RET vfp_raise_exceptions(cpu, ret, inst_cream->instr, cpu->VFP[VFP_OFFSET(VFP_FPSCR)]); //if (ret == -1) {printf("VFP CDP FAILURE %x\n", inst_cream->instr); exit(-1);} + unsigned VFPInit (ARMul_State *state); unsigned VFPMRC (ARMul_State * state, unsigned type, ARMword instr, ARMword * value); unsigned VFPMCR (ARMul_State * state, unsigned type, ARMword instr, ARMword value); |