vfp.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. vfp/vfp.h - ARM VFPv3 emulation unit - vfp interface
  3. Copyright (C) 2003 Skyeye Develop Group
  4. for help please send mail to <skyeye-developer@lists.gro.clinux.org>
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. */
  17. #pragma once
  18. #include "core/arm/skyeye_common/vfp/vfp_helper.h" /* for references to cdp SoftFloat functions */
  19. #define VFP_DEBUG_UNIMPLEMENTED(x) LOG_ERROR(Core_ARM11, "in func %s, " #x " unimplemented\n", __FUNCTION__); exit(-1);
  20. #define VFP_DEBUG_UNTESTED(x) LOG_TRACE(Core_ARM11, "in func %s, " #x " untested\n", __FUNCTION__);
  21. #define CHECK_VFP_ENABLED
  22. #define CHECK_VFP_CDP_RET vfp_raise_exceptions(cpu, ret, inst_cream->instr, cpu->VFP[VFP_FPSCR]);
  23. unsigned VFPInit(ARMul_State* state);
  24. s32 vfp_get_float(ARMul_State* state, u32 reg);
  25. void vfp_put_float(ARMul_State* state, s32 val, u32 reg);
  26. u64 vfp_get_double(ARMul_State* state, u32 reg);
  27. void vfp_put_double(ARMul_State* state, u64 val, u32 reg);
  28. void vfp_raise_exceptions(ARMul_State* state, u32 exceptions, u32 inst, u32 fpscr);
  29. u32 vfp_single_cpdo(ARMul_State* state, u32 inst, u32 fpscr);
  30. u32 vfp_double_cpdo(ARMul_State* state, u32 inst, u32 fpscr);
  31. void VMSR(ARMul_State* state, ARMword reg, ARMword Rt);
  32. void VMOVBRS(ARMul_State* state, ARMword to_arm, ARMword t, ARMword n, ARMword* value);
  33. void VMOVBRRD(ARMul_State* state, ARMword to_arm, ARMword t, ARMword t2, ARMword n, ARMword* value1, ARMword* value2);
  34. void VMOVBRRSS(ARMul_State* state, ARMword to_arm, ARMword t, ARMword t2, ARMword n, ARMword* value1, ARMword* value2);
  35. void VMOVI(ARMul_State* state, ARMword single, ARMword d, ARMword imm);
  36. void VMOVR(ARMul_State* state, ARMword single, ARMword d, ARMword imm);