This patch adds handling for the sys instruction as noop. Signed-off-by: Alexander Graf <ag...@suse.de> --- target-arm/translate-a64.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index cfad24f..2c2adb8 100644 --- a/target-arm/translate-a64.c +++ b/target-arm/translate-a64.c @@ -1706,6 +1706,14 @@ static void handle_msr(DisasContext *s, uint32_t insn) } } +static void handle_sys(DisasContext *s, uint32_t insn) +{ + /* + * XXX Simply ignore sys for now. We only need to start worrying about it + * when we start implementing system emulation. + */ +} + void disas_a64_insn(CPUARMState *env, DisasContext *s) { uint32_t insn; @@ -1842,6 +1850,8 @@ void disas_a64_insn(CPUARMState *env, DisasContext *s) /* HINT instructions, do nothing */ } else if ((insn & 0xfffff09f) == 0xd503309f) { /* barrier instructions, do nothing */ + } else if (get_bits(insn, 19, 13) == 0x1aa1) { + handle_sys(s, insn); } else { unallocated_encoding(s); } -- 1.7.12.4