i forgor syscall
This commit is contained in:
parent
6ec6d858b5
commit
d079aac905
1 changed files with 6 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue