mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-17 12:37:25 +00:00
target-sparc: Use ctpop helper
Backports commit 08da3180dca8d41881b321d43944d97a838792fa from qemu
This commit is contained in:
parent
5f6e7bbdbd
commit
d072ea48e7
|
@ -49,11 +49,6 @@ void helper_debug(CPUSPARCState *env)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TARGET_SPARC64
|
#ifdef TARGET_SPARC64
|
||||||
target_ulong helper_popc(target_ulong val)
|
|
||||||
{
|
|
||||||
return ctpop64(val);
|
|
||||||
}
|
|
||||||
|
|
||||||
void helper_tick_set_count(void *opaque, uint64_t count)
|
void helper_tick_set_count(void *opaque, uint64_t count)
|
||||||
{
|
{
|
||||||
#if !defined(CONFIG_USER_ONLY)
|
#if !defined(CONFIG_USER_ONLY)
|
||||||
|
|
|
@ -18,7 +18,6 @@ DEF_HELPER_2(wrccr, void, env, tl)
|
||||||
DEF_HELPER_1(rdcwp, tl, env)
|
DEF_HELPER_1(rdcwp, tl, env)
|
||||||
DEF_HELPER_2(wrcwp, void, env, tl)
|
DEF_HELPER_2(wrcwp, void, env, tl)
|
||||||
DEF_HELPER_FLAGS_2(array8, TCG_CALL_NO_RWG_SE, tl, tl, tl)
|
DEF_HELPER_FLAGS_2(array8, TCG_CALL_NO_RWG_SE, tl, tl, tl)
|
||||||
DEF_HELPER_FLAGS_1(popc, TCG_CALL_NO_RWG_SE, tl, tl)
|
|
||||||
DEF_HELPER_FLAGS_2(set_softint, TCG_CALL_NO_RWG, void, env, i64)
|
DEF_HELPER_FLAGS_2(set_softint, TCG_CALL_NO_RWG, void, env, i64)
|
||||||
DEF_HELPER_FLAGS_2(clear_softint, TCG_CALL_NO_RWG, void, env, i64)
|
DEF_HELPER_FLAGS_2(clear_softint, TCG_CALL_NO_RWG, void, env, i64)
|
||||||
DEF_HELPER_FLAGS_2(write_softint, TCG_CALL_NO_RWG, void, env, i64)
|
DEF_HELPER_FLAGS_2(write_softint, TCG_CALL_NO_RWG, void, env, i64)
|
||||||
|
|
|
@ -4850,7 +4850,7 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn, bool hook_ins
|
||||||
gen_store_gpr(dc, rd, cpu_dst);
|
gen_store_gpr(dc, rd, cpu_dst);
|
||||||
break;
|
break;
|
||||||
case 0x2e: /* V9 popc */
|
case 0x2e: /* V9 popc */
|
||||||
gen_helper_popc(tcg_ctx, cpu_dst, cpu_src2);
|
tcg_gen_ctpop_tl(tcg_ctx, cpu_dst, cpu_src2);
|
||||||
gen_store_gpr(dc, rd, cpu_dst);
|
gen_store_gpr(dc, rd, cpu_dst);
|
||||||
break;
|
break;
|
||||||
case 0x2f: /* V9 movr */
|
case 0x2f: /* V9 movr */
|
||||||
|
|
Loading…
Reference in a new issue