diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-12-14 19:08:45 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-01-14 17:13:53 +0100 |
commit | 11a7511856a059796812f7c25ceca6b35cae4b3e (patch) | |
tree | 32646b462823a33b0771184a8eff9f6cac221030 /target | |
parent | 46c9e2b3dddc63bc85e07e3ad33fceb9d300be67 (diff) | |
download | qemu-11a7511856a059796812f7c25ceca6b35cae4b3e.zip |
target/mips: Replace gen_exception_err(err=0) by gen_exception_end()
generate_exception_err(err=0) is simply generate_exception_end().
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20201214183739.500368-11-f4bug@amsat.org>
Diffstat (limited to 'target')
-rw-r--r-- | target/mips/translate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/mips/translate.c b/target/mips/translate.c index 72cbf604ac..fa11c8ffe0 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -2897,7 +2897,7 @@ void gen_move_high32(TCGv ret, TCGv_i64 arg) static inline void check_cp0_enabled(DisasContext *ctx) { if (unlikely(!(ctx->hflags & MIPS_HFLAG_CP0))) { - generate_exception_err(ctx, EXCP_CpU, 0); + generate_exception_end(ctx, EXCP_CpU); } } @@ -3103,10 +3103,10 @@ static inline void check_mt(DisasContext *ctx) static inline void check_cp0_mt(DisasContext *ctx) { if (unlikely(!(ctx->hflags & MIPS_HFLAG_CP0))) { - generate_exception_err(ctx, EXCP_CpU, 0); + generate_exception_end(ctx, EXCP_CpU); } else { if (unlikely(!(ctx->CP0_Config3 & (1 << CP0C3_MT)))) { - generate_exception_err(ctx, EXCP_RI, 0); + generate_exception_end(ctx, EXCP_RI); } } } |