;;
sh4|sh4eb)
echo "TARGET_ARCH=sh4" >> $config_mak
- echo "CONFIG_DYNGEN_OP=yes" >> $config_mak
echo "#define TARGET_ARCH \"sh4\"" >> $config_h
echo "#define TARGET_SH4 1" >> $config_h
- echo "#define CONFIG_DYNGEN_OP 1" >> $config_h
bflt="yes"
;;
sparc)
DEF_HELPER(uint64_t, helper_float_DT, (uint32_t))
DEF_HELPER(uint32_t, helper_fmul_FT, (uint32_t, uint32_t))
DEF_HELPER(uint64_t, helper_fmul_DT, (uint64_t, uint64_t))
+DEF_HELPER(uint32_t, helper_fneg_T, (uint32_t))
DEF_HELPER(uint32_t, helper_fsub_FT, (uint32_t, uint32_t))
DEF_HELPER(uint64_t, helper_fsub_DT, (uint64_t, uint64_t))
DEF_HELPER(uint32_t, helper_fsqrt_FT, (uint32_t))
+++ /dev/null
-/*
- * SH4 emulation
- *
- * Copyright (c) 2005 Samuel Tardieu
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-#include "exec.h"
-
-void OPPROTO op_fneg_frN(void)
-{
- env->fregs[PARAM1] = float32_chs(env->fregs[PARAM1]);
- RETURN();
-}
-
return *(uint64_t*)(&ret);
}
+uint32_t helper_fneg_T(uint32_t t0)
+{
+ float32 ret = float32_chs(*(float32*)&t0);
+ return *(uint32_t*)(&ret);
+}
+
uint32_t helper_fsqrt_FT(uint32_t t0)
{
float32 ret = float32_sqrt(*(float32*)&t0, &env->fp_status);
}
return;
case 0xf04d: /* fneg FRn/DRn - FPSCR: Nothing */
- gen_op_fneg_frN(FREG(B11_8));
+ {
+ TCGv fp = tcg_temp_new(TCG_TYPE_I32);
+ gen_load_fpr32(fp, FREG(B11_8));
+ tcg_gen_helper_1_1(helper_fneg_T, fp, fp);
+ gen_store_fpr32(fp, FREG(B11_8));
+ tcg_temp_free(fp);
+ }
return;
case 0xf05d: /* fabs FRn/DRn */
if (ctx->fpscr & FPSCR_PR) {