i forgor syscall

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