i forgor syscall

This commit is contained in:
Murphy 2024-09-09 12:57:53 -04:00
parent 6ec6d858b5
commit d079aac905
Signed by: freya
GPG key ID: 744AB800E383AE52

View file

@ -44,6 +44,8 @@ enum mips32_parse_format {
MIPS32_PARSE_S,
// shift variable: rd, rt, rs
MIPS32_PARSE_SV,
// none:
MIPS32_PARSE_NONE,
};
#define FORMAT(ins, format) \
@ -112,6 +114,7 @@ const enum mips32_parse_format mips32_parse_formats[] = {
FORMAT(SRAV, SV)
FORMAT(SRL, S)
FORMAT(SRLV, SV)
FORMAT(SYSCALL, NONE)
FORMAT(OR, R)
FORMAT(ORI, I)
FORMAT(NOR, R)
@ -665,6 +668,9 @@ static int parse_instruction(struct parser *parser,
case MIPS32_PARSE_SV:
res = parse_instruction_sv(parser, &ins->mips32);
break;
case MIPS32_PARSE_NONE:
res = M_SUCCESS;
break;
}
if (res == M_SUCCESS && assert_eol(parser))