[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/8] target/mips: Add * to comments and realign them
From: |
Aleksandar Markovic |
Subject: |
[Qemu-devel] [PATCH 4/8] target/mips: Add * to comments and realign them to fix checkpatch warnings |
Date: |
Tue, 23 Apr 2019 13:29:38 +0200 |
From: Jules Irenge <address@hidden>
Add * to comments and realign to fix warnings issued by checkpatch.pl
tool "WARNING: Block comments use a leading /* on a separate line"
within the file target/mips/cp0_timer.c.
Signed-off-by: Jules Irenge <address@hidden>
Signed-off-by: Aleksandar Markovic <address@hidden>
Reviewed-by: Aleksandar Markovic <address@hidden>
Message-Id: <address@hidden>
---
target/mips/cp0_timer.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/target/mips/cp0_timer.c b/target/mips/cp0_timer.c
index 742f4b2..d80b007 100644
--- a/target/mips/cp0_timer.c
+++ b/target/mips/cp0_timer.c
@@ -42,8 +42,10 @@ uint32_t cpu_mips_get_random(CPUMIPSState *env)
/* Don't return same value twice, so get another value */
do {
- /* Use a simple algorithm of Linear Congruential Generator
- * from ISO/IEC 9899 standard. */
+ /*
+ * Use a simple algorithm of Linear Congruential Generator
+ * from ISO/IEC 9899 standard.
+ */
seed = 1103515245 * seed + 12345;
idx = (seed >> 16) % nb_rand_tlb + env->CP0_Wired;
} while (idx == prev_idx);
@@ -143,9 +145,11 @@ static void mips_timer_cb(void *opaque)
if (env->CP0_Cause & (1 << CP0Ca_DC))
return;
- /* ??? This callback should occur when the counter is exactly equal to
- the comparator value. Offset the count by one to avoid immediately
- retriggering the callback before any virtual time has passed. */
+ /*
+ * ??? This callback should occur when the counter is exactly equal to
+ * the comparator value. Offset the count by one to avoid immediately
+ * retriggering the callback before any virtual time has passed.
+ */
env->CP0_Count++;
cpu_mips_timer_expire(env);
env->CP0_Count--;
--
2.7.4
- [Qemu-devel] [PATCH 0/8] target/mips: Clean up misc code segments, Aleksandar Markovic, 2019/04/23
- [Qemu-devel] [PATCH 4/8] target/mips: Add * to comments and realign them to fix checkpatch warnings,
Aleksandar Markovic <=
- [Qemu-devel] [PATCH 3/8] target/mips: Remove a space before open parenthesis to fix checkpatch errors, Aleksandar Markovic, 2019/04/23
- [Qemu-devel] [PATCH 2/8] target/mips: Realign comments to fix checkpatch warnings, Aleksandar Markovic, 2019/04/23
- [Qemu-devel] [PATCH 7/8] target/mips: Fix some space checkpatch errors in translate.c, Aleksandar Markovic, 2019/04/23
- [Qemu-devel] [PATCH 6/8] target/mips: Clean up lmi_helper.c, Aleksandar Markovic, 2019/04/23
- [Qemu-devel] [PATCH 1/8] target/mips: Add or remove space to fix checkpatch errors, Aleksandar Markovic, 2019/04/23
- [Qemu-devel] [PATCH 8/8] target/mips: Fix if-else arms checkpatch errors in translate.c, Aleksandar Markovic, 2019/04/23
- [Qemu-devel] [PATCH 5/8] target/mips: Clean up dsp_helper.c, Aleksandar Markovic, 2019/04/23