mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-24 22:15:07 +00:00
target-sparc: implement UltraSPARC-T1 Strand status ASR
Backports commit b8e31b3cc6315bc5c6ec686c363c088c4fb1d0ea from qemu
This commit is contained in:
parent
2f329af7ef
commit
204a4dc1d3
|
@ -3631,6 +3631,17 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn, bool hook_ins
|
||||||
case 0x19: /* System tick compare */
|
case 0x19: /* System tick compare */
|
||||||
gen_store_gpr(dc, rd, tcg_ctx->cpu_stick_cmpr);
|
gen_store_gpr(dc, rd, tcg_ctx->cpu_stick_cmpr);
|
||||||
break;
|
break;
|
||||||
|
case 0x1a: /* UltraSPARC-T1 Strand status */
|
||||||
|
/* XXX HYPV check maybe not enough, UA2005 & UA2007 describe
|
||||||
|
* this ASR as impl. dep
|
||||||
|
*/
|
||||||
|
CHECK_IU_FEATURE(dc, HYPV);
|
||||||
|
{
|
||||||
|
TCGv t = gen_dest_gpr(dc, rd);
|
||||||
|
tcg_gen_movi_tl(tcg_ctx, t, 1UL);
|
||||||
|
gen_store_gpr(dc, rd, t);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 0x10: /* Performance Control */
|
case 0x10: /* Performance Control */
|
||||||
case 0x11: /* Performance Instrumentation Counter */
|
case 0x11: /* Performance Instrumentation Counter */
|
||||||
case 0x12: /* Dispatch Control */
|
case 0x12: /* Dispatch Control */
|
||||||
|
|
Loading…
Reference in a new issue