[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 07/63] target/nios2: Clean up goto in handle_instruction
From: |
Richard Henderson |
Subject: |
[PULL 07/63] target/nios2: Clean up goto in handle_instruction |
Date: |
Tue, 29 Jun 2021 11:53:59 -0700 |
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/nios2/translate.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/target/nios2/translate.c b/target/nios2/translate.c
index 6fd4330b31..9e71267b42 100644
--- a/target/nios2/translate.c
+++ b/target/nios2/translate.c
@@ -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[] = {
--
2.25.1
- [PULL 00/63] tcg patch queue, Richard Henderson, 2021/06/29
- [PULL 01/63] target/nios2: Replace DISAS_TB_JUMP with DISAS_NORETURN, Richard Henderson, 2021/06/29
- [PULL 02/63] target/nios2: Use global cpu_env, Richard Henderson, 2021/06/29
- [PULL 03/63] target/nios2: Use global cpu_R, Richard Henderson, 2021/06/29
- [PULL 06/63] target/nios2: Remove assignment to env in handle_instruction, Richard Henderson, 2021/06/29
- [PULL 04/63] target/nios2: Add DisasContextBase to DisasContext, Richard Henderson, 2021/06/29
- [PULL 05/63] target/nios2: Convert to TranslatorOps, Richard Henderson, 2021/06/29
- [PULL 07/63] target/nios2: Clean up goto in handle_instruction,
Richard Henderson <=
- [PULL 08/63] target/nios2: Inline handle_instruction, Richard Henderson, 2021/06/29
- [PULL 12/63] target/avr: Convert to TranslatorOps, Richard Henderson, 2021/06/29
- [PULL 09/63] target/nios2: Use pc_next for pc + 4, Richard Henderson, 2021/06/29
- [PULL 17/63] target/cris: Fix use_goto_tb, Richard Henderson, 2021/06/29
- [PULL 29/63] tcg: Add tcg_gen_vec_add{sub}16_i32, Richard Henderson, 2021/06/29
- [PULL 22/63] target/cris: Set cpustate_changed for rfe/rfn, Richard Henderson, 2021/06/29
- [PULL 19/63] target/cris: Mark helper_raise_exception noreturn, Richard Henderson, 2021/06/29
- [PULL 15/63] target/cris: Replace DISAS_TB_JUMP with DISAS_NORETURN, Richard Henderson, 2021/06/29
- [PULL 13/63] target/cris: Add DisasContextBase to DisasContext, Richard Henderson, 2021/06/29
- [PULL 18/63] target/cris: Convert to TranslatorOps, Richard Henderson, 2021/06/29