[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/8] target/sh4: Update coding style to make checkpatch.pl happy
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 5/8] target/sh4: Update coding style to make checkpatch.pl happy |
Date: |
Tue, 27 Oct 2020 00:29:32 +0100 |
Avoid checkpatch.pl warnings in the next commit.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
target/sh4/op_helper.c | 8 +++++---
target/sh4/translate.c | 8 +++++---
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/target/sh4/op_helper.c b/target/sh4/op_helper.c
index 14c3db0f485..fcd9ac7271c 100644
--- a/target/sh4/op_helper.c
+++ b/target/sh4/op_helper.c
@@ -398,9 +398,11 @@ float32 helper_fsrra_FT(CPUSH4State *env, float32 t0)
/* "Approximate" 1/sqrt(x) via actual computation. */
t0 = float32_sqrt(t0, &env->fp_status);
t0 = float32_div(float32_one, t0, &env->fp_status);
- /* Since this is supposed to be an approximation, an imprecision
- exception is required. One supposes this also follows the usual
- IEEE rule that other exceptions take precidence. */
+ /*
+ * Since this is supposed to be an approximation, an imprecision
+ * exception is required. One supposes this also follows the usual
+ * IEEE rule that other exceptions take precidence.
+ */
if (get_float_exception_flags(&env->fp_status) == 0) {
set_float_exception_flags(float_flag_inexact, &env->fp_status);
}
diff --git a/target/sh4/translate.c b/target/sh4/translate.c
index 60c863d9e1b..ec5b04889e1 100644
--- a/target/sh4/translate.c
+++ b/target/sh4/translate.c
@@ -1959,9 +1959,11 @@ static void decode_gusa(DisasContext *ctx, CPUSH4State
*env)
NEXT_INSN;
switch (ctx->opcode & 0xf00f) {
case 0x6003: /* mov Rm,Rn */
- /* Here we want to recognize ld_dst being saved for later consumtion,
- or for another input register being copied so that ld_dst need not
- be clobbered during the operation. */
+ /*
+ * Here we want to recognize ld_dst being saved for later consumtion,
+ * or for another input register being copied so that ld_dst need not
+ * be clobbered during the operation.
+ */
op_dst = B11_8;
mv_src = B7_4;
if (op_dst == ld_dst) {
--
2.26.2
- [PULL 0/8] Renesas patches for 2020-10-27, Philippe Mathieu-Daudé, 2020/10/26
- [PULL 1/8] elf: Add EM_RX definition, Philippe Mathieu-Daudé, 2020/10/26
- [PULL 3/8] hw/timer/sh_timer: Silence warnings about missing fallthrough statements, Philippe Mathieu-Daudé, 2020/10/26
- [PULL 2/8] hw/timer/sh_timer: Coding style clean-up, Philippe Mathieu-Daudé, 2020/10/26
- [PULL 4/8] hw/timer/sh_timer: Remove superfluous "break" statements, Philippe Mathieu-Daudé, 2020/10/26
- [PULL 5/8] target/sh4: Update coding style to make checkpatch.pl happy,
Philippe Mathieu-Daudé <=
- [PULL 6/8] target/sh4: fix some comment spelling errors, Philippe Mathieu-Daudé, 2020/10/26
- [PULL 7/8] target/rx: Fix some comment spelling errors, Philippe Mathieu-Daudé, 2020/10/26
- [PULL 8/8] target/rx: Fix Lesser GPL version number, Philippe Mathieu-Daudé, 2020/10/26
- Re: [PULL 0/8] Renesas patches for 2020-10-27, Peter Maydell, 2020/10/28