[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2] target/mips: add * to comments and realign them
From: |
Jules Irenge |
Subject: |
[Qemu-devel] [PATCH v2] target/mips: add * to comments and realign them to fix checkpatch warnings |
Date: |
Wed, 27 Mar 2019 18:16:50 +0000 |
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>
---
This v2 improves on writing the comment style and get rid of the warnings
completely
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 742f4b2890..d80b0076d3 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.20.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH v2] target/mips: add * to comments and realign them to fix checkpatch warnings,
Jules Irenge <=