mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-01 11:18:23 +00:00
target/arm: Decode PAuth within disas_data_proc_2src
Backports commit b6342a9f929b5946beb6726eef2ef2c5f4a11f09 from qemu
This commit is contained in:
parent
999222f0a1
commit
febfda4e98
|
@ -4949,6 +4949,7 @@ static void handle_crc32(DisasContext *s,
|
||||||
*/
|
*/
|
||||||
static void disas_data_proc_2src(DisasContext *s, uint32_t insn)
|
static void disas_data_proc_2src(DisasContext *s, uint32_t insn)
|
||||||
{
|
{
|
||||||
|
TCGContext *tcg_ctx = s->uc->tcg_ctx;
|
||||||
unsigned int sf, rm, opcode, rn, rd;
|
unsigned int sf, rm, opcode, rn, rd;
|
||||||
sf = extract32(insn, 31, 1);
|
sf = extract32(insn, 31, 1);
|
||||||
rm = extract32(insn, 16, 5);
|
rm = extract32(insn, 16, 5);
|
||||||
|
@ -4980,6 +4981,13 @@ static void disas_data_proc_2src(DisasContext *s, uint32_t insn)
|
||||||
case 11: /* RORV */
|
case 11: /* RORV */
|
||||||
handle_shift_reg(s, A64_SHIFT_TYPE_ROR, sf, rm, rn, rd);
|
handle_shift_reg(s, A64_SHIFT_TYPE_ROR, sf, rm, rn, rd);
|
||||||
break;
|
break;
|
||||||
|
case 12: /* PACGA */
|
||||||
|
if (sf == 0 || !dc_isar_feature(aa64_pauth, s)) {
|
||||||
|
goto do_unallocated;
|
||||||
|
}
|
||||||
|
gen_helper_pacga(tcg_ctx, cpu_reg(s, rd), tcg_ctx->cpu_env,
|
||||||
|
cpu_reg(s, rn), cpu_reg_sp(s, rm));
|
||||||
|
break;
|
||||||
case 16:
|
case 16:
|
||||||
case 17:
|
case 17:
|
||||||
case 18:
|
case 18:
|
||||||
|
@ -4995,6 +5003,7 @@ static void disas_data_proc_2src(DisasContext *s, uint32_t insn)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
do_unallocated:
|
||||||
unallocated_encoding(s);
|
unallocated_encoding(s);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue