From e35005853229f67d85a258069359a29969b14c1c Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Sat, 23 Jan 2021 14:20:06 +0100 Subject: [PATCH] arm-asm: Add svc --- arm-asm.c | 2 ++ arm-tok.h | 1 + 2 files changed, 3 insertions(+) diff --git a/arm-asm.c b/arm-asm.c index e039fa9e..f1d776a5 100644 --- a/arm-asm.c +++ b/arm-asm.c @@ -212,6 +212,7 @@ static void asm_unary_opcode(TCCState *s1, int token) switch (ARM_INSTRUCTION_GROUP(token)) { case TOK_ASM_swieq: + case TOK_ASM_svceq: if (op.type != OP_IM8) expect("immediate 8-bit unsigned integer"); else { @@ -1776,6 +1777,7 @@ ST_FUNC void asm_opcode(TCCState *s1, int token) asm_nullary_opcode(token); return; case TOK_ASM_swieq: + case TOK_ASM_svceq: asm_unary_opcode(s1, token); return; case TOK_ASM_beq: diff --git a/arm-tok.h b/arm-tok.h index 3dc3ea01..bb57f957 100644 --- a/arm-tok.h +++ b/arm-tok.h @@ -159,6 +159,7 @@ DEF_ASM_CONDED(wfe) DEF_ASM_CONDED(wfi) DEF_ASM_CONDED(swi) + DEF_ASM_CONDED(svc) /* misc */ DEF_ASM_CONDED(clz)