[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/10] hw/sparc64: Fix code style for checkpatch.pl
From: |
Mark Cave-Ayland |
Subject: |
[PULL 09/10] hw/sparc64: Fix code style for checkpatch.pl |
Date: |
Wed, 5 May 2021 08:35:37 +0100 |
From: Philippe Mathieu-Daudé <f4bug@amsat.org>
We are going to move this code, fix its style first.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: KONRAD Frederic <frederic.konrad@adacore.com>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210428141655.387430-4-f4bug@amsat.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
hw/sparc64/sparc64.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/hw/sparc64/sparc64.c b/hw/sparc64/sparc64.c
index cc0b9bd30d..fd29a79edc 100644
--- a/hw/sparc64/sparc64.c
+++ b/hw/sparc64/sparc64.c
@@ -48,14 +48,18 @@ void cpu_check_irqs(CPUSPARCState *env)
return;
}
cs = env_cpu(env);
- /* check if TM or SM in SOFTINT are set
- setting these also causes interrupt 14 */
+ /*
+ * check if TM or SM in SOFTINT are set
+ * setting these also causes interrupt 14
+ */
if (env->softint & (SOFTINT_TIMER | SOFTINT_STIMER)) {
pil |= 1 << 14;
}
- /* The bit corresponding to psrpil is (1<< psrpil), the next bit
- is (2 << psrpil). */
+ /*
+ * The bit corresponding to psrpil is (1<< psrpil),
+ * the next bit is (2 << psrpil).
+ */
if (pil < (2 << env->psrpil)) {
if (cs->interrupt_request & CPU_INTERRUPT_HARD) {
trace_sparc64_cpu_check_irqs_reset_irq(env->interrupt_index);
--
2.20.1
- [PULL 00/10] qemu-sparc queue 20210505, Mark Cave-Ayland, 2021/05/05
- [PULL 01/10] hw/sparc/sun4m: Have sun4m machines inherit new TYPE_SUN4M_MACHINE, Mark Cave-Ayland, 2021/05/05
- [PULL 03/10] hw/sparc/sun4m: Factor out sun4m_machine_class_init(), Mark Cave-Ayland, 2021/05/05
- [PULL 02/10] hw/sparc/sun4m: Introduce Sun4mMachineClass, Mark Cave-Ayland, 2021/05/05
- [PULL 07/10] hw/sparc: Allow building without the leon3 machine, Mark Cave-Ayland, 2021/05/05
- [PULL 05/10] hw/sparc/sun4m: Fix code style for checkpatch.pl, Mark Cave-Ayland, 2021/05/05
- [PULL 06/10] hw/sparc/sun4m: Move each sun4m_hwdef definition in its class_init, Mark Cave-Ayland, 2021/05/05
- [PULL 04/10] hw/sparc/sun4m: Register machine types in sun4m_machine_types[], Mark Cave-Ayland, 2021/05/05
- [PULL 08/10] hw/sparc64: Remove unused "hw/char/serial.h" header, Mark Cave-Ayland, 2021/05/05
- [PULL 09/10] hw/sparc64: Fix code style for checkpatch.pl,
Mark Cave-Ayland <=
- [PULL 10/10] hw/sparc*: Move cpu_check_irqs() to target/sparc/, Mark Cave-Ayland, 2021/05/05
- Re: [PULL 00/10] qemu-sparc queue 20210505, Peter Maydell, 2021/05/10