vfp.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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_UNTESTED(x) LOG_TRACE(Core_ARM11, "in func %s, " #x " untested", __FUNCTION__);
  20. #define CHECK_VFP_ENABLED
  21. #define CHECK_VFP_CDP_RET vfp_raise_exceptions(cpu, ret, inst_cream->instr, cpu->VFP[VFP_FPSCR]);
  22. void VFPInit(ARMul_State* state);
  23. s32 vfp_get_float(ARMul_State* state, u32 reg);
  24. void vfp_put_float(ARMul_State* state, s32 val, u32 reg);
  25. u64 vfp_get_double(ARMul_State* state, u32 reg);
  26. void vfp_put_double(ARMul_State* state, u64 val, u32 reg);
  27. void vfp_raise_exceptions(ARMul_State* state, u32 exceptions, u32 inst, u32 fpscr);
  28. u32 vfp_single_cpdo(ARMul_State* state, u32 inst, u32 fpscr);
  29. u32 vfp_double_cpdo(ARMul_State* state, u32 inst, u32 fpscr);
  30. void VMOVBRS(ARMul_State* state, u32 to_arm, u32 t, u32 n, u32* value);
  31. void VMOVBRRD(ARMul_State* state, u32 to_arm, u32 t, u32 t2, u32 n, u32* value1, u32* value2);
  32. void VMOVBRRSS(ARMul_State* state, u32 to_arm, u32 t, u32 t2, u32 n, u32* value1, u32* value2);
  33. void VMOVI(ARMul_State* state, u32 single, u32 d, u32 imm);
  34. void VMOVR(ARMul_State* state, u32 single, u32 d, u32 imm);