Skip to contentSkip to conversation

trivial: Fix some typos

PATCH Applied Philippe Mathieu-Daudé 4 participants 10 messages Jun 2, 2021 – Jun 5, 2021

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover trivial: Fix some typos

Fix few typos:
. Uncoditional -> Unconditional
. havn't -> haven't
. stdin -> stdio

Philippe Mathieu-Daudé (3):
misc: Fix "havn't" typo
target/mips: Fix 'Uncoditional' typo
scripts/oss-fuzz: Fix typo in documentation

 hw/usb/desc-msos.c                             | 2 +-
 target/mips/tcg/translate.c                    | 6 +++---
 target/s390x/translate.c                       | 6 ++++--
 tcg/tcg-op.c                                   | 2 +-
 tcg/arm/tcg-target.c.inc                       | 6 ++++--
 tcg/sparc/tcg-target.c.inc                     | 6 ++++--
 scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py | 2 +-
 7 files changed, 18 insertions(+), 12 deletions(-)
Signature · 1 line
2.26.3
#1 lore raw

PATCH 1/3 misc: Fix "havn't" typo

Fix havn't -> haven't typo.

---
 hw/usb/desc-msos.c         | 2 +-
 target/s390x/translate.c   | 6 ++++--
 tcg/tcg-op.c               | 2 +-
 tcg/arm/tcg-target.c.inc   | 6 ++++--
 tcg/sparc/tcg-target.c.inc | 6 ++++--
 5 files changed, 14 insertions(+), 8 deletions(-)
hw/usb/desc-msos.c +1 -1
index 3a5ad7c8d0f..836e38c67e1 100644
@@ -181,7 +181,7 @@ static int usb_desc_msos_prop(const USBDesc *desc, uint8_t *dest)
 
     if (desc->msos->Label) {
         /*
-         * Given as example in the specs.  Havn't figured yet where
+         * Given as example in the specs.  Haven't figured yet where
          * this label shows up in the windows gui.
          */
         length += usb_desc_msos_prop_str(dest+length, MSOS_REG_SZ,
target/s390x/translate.c +4 -2
index e243624d2a6..f3124a52207 100644
@@ -6270,8 +6270,10 @@ static void extract_field(DisasFields *o, const DisasField *f, uint64_t insn)
         abort();
     }
 
-    /* Validate that the "compressed" encoding we selected above is valid.
-       I.e. we havn't make two different original fields overlap.  */
+    /*
+     * Validate that the "compressed" encoding we selected above is valid.
+     * I.e. we haven't make two different original fields overlap.
+     */
     assert(((o->presentC >> f->indexC) & 1) == 0);
     o->presentC |= 1 << f->indexC;
     o->presentO |= 1 << f->indexO;
tcg/tcg-op.c +1 -1
index dcc2ed0bbc8..869dc6cdd29 100644
@@ -2695,7 +2695,7 @@ void tcg_gen_goto_tb(unsigned idx)
     /* We only support two chained exits.  */
     tcg_debug_assert(idx <= TB_EXIT_IDXMAX);
 #ifdef CONFIG_DEBUG_TCG
-    /* Verify that we havn't seen this numbered exit before.  */
+    /* Verify that we haven't seen this numbered exit before.  */
     tcg_debug_assert((tcg_ctx->goto_tb_issue_mask & (1 << idx)) == 0);
     tcg_ctx->goto_tb_issue_mask |= 1 << idx;
 #endif
tcg/arm/tcg-target.c.inc +4 -2
index 8457108a87a..751fcd96930 100644
@@ -2127,8 +2127,10 @@ static TCGConstraintSetIndex tcg_target_op_def(TCGOpcode op)
 
 static void tcg_target_init(TCGContext *s)
 {
-    /* Only probe for the platform and capabilities if we havn't already
-       determined maximum values at compile time.  */
+    /*
+     * Only probe for the platform and capabilities if we haven't already
+     * determined maximum values at compile time.
+     */
 #ifndef use_idiv_instructions
     {
         unsigned long hwcap = qemu_getauxval(AT_HWCAP);
tcg/sparc/tcg-target.c.inc +4 -2
index 3d50f985c6c..520b91d8b10 100644
@@ -1689,8 +1689,10 @@ static TCGConstraintSetIndex tcg_target_op_def(TCGOpcode op)
 
 static void tcg_target_init(TCGContext *s)
 {
-    /* Only probe for the platform and capabilities if we havn't already
-       determined maximum values at compile time.  */
+    /*
+     * Only probe for the platform and capabilities if we haven't already
+     * determined maximum values at compile time.
+     */
 #ifndef use_vis3_instructions
     {
         unsigned long hwcap = qemu_getauxval(AT_HWCAP);
Signature · 1 line
2.26.3
Reviewed-by on v1 1/3
#2 lore raw

RE: [PATCH 1/3] misc: Fix "havn't" typo

From: Philippe Mathieu-Daudé

Quoted 10 lines

Fix havn't -> haven't typo.

---
 hw/usb/desc-msos.c         | 2 +-
 target/s390x/translate.c   | 6 ++++--
 tcg/tcg-op.c               | 2 +-
 tcg/arm/tcg-target.c.inc   | 6 ++++--
 tcg/sparc/tcg-target.c.inc | 6 ++++--
 5 files changed, 14 insertions(+), 8 deletions(-)

target/s390x/translate.c static void extract_field(DisasFields *o, const DisasField *f, uint64_t insn) · line 6276

Quoted 6 lines
target/s390x/translate.c +4 -2
-    /* Validate that the "compressed" encoding we selected above is valid.
-       I.e. we havn't make two different original fields overlap.  */
+    /*
+     * Validate that the "compressed" encoding we selected above is valid.
+     * I.e. we haven't make two different original fields overlap.
+     */

haven't make -> haven't made?

Other than that,

--
Luis Pires
Instituto de Pesquisas ELDORADO
Aviso Legal - Disclaimer <https://www.eldorado.org.br/disclaimer.html>

#3 lore raw

Re: [PATCH 1/3] misc: Fix "havn't" typo

Quoted 18 lines · Luis Fernando Fujita Pires

From: Philippe Mathieu-Daudé

Quoted 10 lines

Fix havn't -> haven't typo.

---
 hw/usb/desc-msos.c         | 2 +-
 target/s390x/translate.c   | 6 ++++--
 tcg/tcg-op.c               | 2 +-
 tcg/arm/tcg-target.c.inc   | 6 ++++--
 tcg/sparc/tcg-target.c.inc | 6 ++++--
 5 files changed, 14 insertions(+), 8 deletions(-)

target/s390x/translate.c static void extract_field(DisasFields *o, const DisasField *f, uint64_t insn) · line 6276

Quoted 6 lines
target/s390x/translate.c +4 -2
-    /* Validate that the "compressed" encoding we selected above is valid.
-       I.e. we havn't make two different original fields overlap.  */
+    /*
+     * Validate that the "compressed" encoding we selected above is valid.
+     * I.e. we haven't make two different original fields overlap.
+     */
Quoted 1 line

haven't make -> haven't made?

Oops yes... Thanks!

Quoted 4 lines

Other than that,

#4 lore raw

PATCH 2/3 target/mips: Fix 'Uncoditional' typo

In reply to Philippe Mathieu-Daudé

Fix Uncoditional -> Unconditional typo.

---
 target/mips/tcg/translate.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
target/mips/tcg/translate.c +3 -3
index c03a8ae1fed..797eba44347 100644
@@ -12238,7 +12238,7 @@ static void gen_compute_compact_branch(DisasContext *ctx, uint32_t opc,
     }
 
     if (bcond_compute == 0) {
-        /* Uncoditional compact branch */
+        /* Unconditional compact branch */
         switch (opc) {
         case OPC_JIALC:
             tcg_gen_movi_tl(cpu_gpr[31], ctx->base.pc_next + 4 + m16_lowbit);
@@ -19092,7 +19092,7 @@ static void gen_compute_imm_branch(DisasContext *ctx, uint32_t opc,
     ctx->base.is_jmp = DISAS_NORETURN;
 
     if (cond == TCG_COND_ALWAYS) {
-        /* Uncoditional compact branch */
+        /* Unconditional compact branch */
         gen_goto_tb(ctx, 0, ctx->btarget);
     } else {
         /* Conditional compact branch */
@@ -19201,7 +19201,7 @@ static void gen_compute_compact_branch_nm(DisasContext *ctx, uint32_t opc,
     }
 
     if (bcond_compute == 0) {
-        /* Uncoditional compact branch */
+        /* Unconditional compact branch */
         switch (opc) {
         case OPC_BC:
             gen_goto_tb(ctx, 0, ctx->btarget);
Signature · 1 line
2.26.3
Reviewed-by on v1 2/3
#5 lore raw

RE: [PATCH 2/3] target/mips: Fix 'Uncoditional' typo

From: Philippe Mathieu-Daudé

Quoted 6 lines

Fix Uncoditional -> Unconditional typo.

---
 target/mips/tcg/translate.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--
Luis Pires
Instituto de Pesquisas ELDORADO
Aviso Legal - Disclaimer <https://www.eldorado.org.br/disclaimer.html>

#6 lore raw

Re: [PATCH 2/3] target/mips: Fix 'Uncoditional' typo

In reply to Philippe Mathieu-Daudé

Le 02/06/2021 à 19:07, Philippe Mathieu-Daudé a écrit :

Quoted 31 lines

Fix Uncoditional -> Unconditional typo.

---
 target/mips/tcg/translate.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
target/mips/tcg/translate.c +2 -2
index c03a8ae1fed..797eba44347 100644
@@ -12238,7 +12238,7 @@ static void gen_compute_compact_branch(DisasContext *ctx, uint32_t opc,
     }
 
     if (bcond_compute == 0) {
-        /* Uncoditional compact branch */
+        /* Unconditional compact branch */
         switch (opc) {
         case OPC_JIALC:
             tcg_gen_movi_tl(cpu_gpr[31], ctx->base.pc_next + 4 + m16_lowbit);
@@ -19092,7 +19092,7 @@ static void gen_compute_imm_branch(DisasContext *ctx, uint32_t opc,
     ctx->base.is_jmp = DISAS_NORETURN;
 
     if (cond == TCG_COND_ALWAYS) {
-        /* Uncoditional compact branch */
+        /* Unconditional compact branch */
         gen_goto_tb(ctx, 0, ctx->btarget);
     } else {
         /* Conditional compact branch */

target/mips/tcg/translate.c static void gen_compute_compact_branch_nm(DisasContext *ctx, uint32_t opc, · line 19207

Quoted 8 lines
target/mips/tcg/translate.c +1 -1
@@ -19201,7 +19201,7 @@ static void gen_compute_compact_branch_nm(DisasContext *ctx, uint32_t opc,
     }
 
     if (bcond_compute == 0) {
-        /* Uncoditional compact branch */
+        /* Unconditional compact branch */
         switch (opc) {
         case OPC_BC:
             gen_goto_tb(ctx, 0, ctx->btarget);

Applied to my trivial-patches branch.

Thanks,
Laurent

#7 lore raw

PATCH 3/3 scripts/oss-fuzz: Fix typo in documentation

In reply to Philippe Mathieu-Daudé

While we only use stdin, the chardev is named 'stdio'.

---
 scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py +1 -1
index 890e1def856..b154a25508f 100755
@@ -14,7 +14,7 @@
         /path/to/crash 2> qtest_log_output
 scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py qtest_log_output > qtest_trace
 ./i386-softmmu/qemu-fuzz-i386 -machine q35,accel=qtest \
-        -qtest stdin < qtest_trace
+        -qtest stdio < qtest_trace
 
 ### Details ###
 
Signature · 1 line
2.26.3
#9 lore raw

Re: [PATCH 3/3] scripts/oss-fuzz: Fix typo in documentation

In reply to Philippe Mathieu-Daudé

Le 02/06/2021 à 19:07, Philippe Mathieu-Daudé a écrit :

Quoted 13 lines

While we only use stdin, the chardev is named 'stdio'.

---
 scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py +0 -0
index 890e1def856..b154a25508f 100755

scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py line 20

Quoted 8 lines
scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py +1 -1
@@ -14,7 +14,7 @@
         /path/to/crash 2> qtest_log_output
 scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py qtest_log_output > qtest_trace
 ./i386-softmmu/qemu-fuzz-i386 -machine q35,accel=qtest \
-        -qtest stdin < qtest_trace
+        -qtest stdio < qtest_trace
 
 ### Details ###
 

Applied to my trivial-patches branch.

Thanks,
Laurent