mirror of
https://github.com/qemu/qemu.git
synced 2024-12-01 15:53:35 +08:00
target/nios2: Clean up goto in handle_instruction
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
50e1a0cd3c
commit
a5f919d19c
@ -753,7 +753,8 @@ static void handle_instruction(DisasContext *dc, CPUNios2State *env)
|
||||
op = get_opcode(code);
|
||||
|
||||
if (unlikely(op >= ARRAY_SIZE(i_type_instructions))) {
|
||||
goto illegal_op;
|
||||
t_gen_helper_raise_exception(dc, EXCP_ILLEGAL);
|
||||
return;
|
||||
}
|
||||
|
||||
dc->zero = NULL;
|
||||
@ -764,11 +765,6 @@ static void handle_instruction(DisasContext *dc, CPUNios2State *env)
|
||||
if (dc->zero) {
|
||||
tcg_temp_free(dc->zero);
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
illegal_op:
|
||||
t_gen_helper_raise_exception(dc, EXCP_ILLEGAL);
|
||||
}
|
||||
|
||||
static const char * const regnames[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user