Skip to contentSkip to conversation

Fix new typos found by codespell

PATCH Applied Stefan Weil 3 participants 6 messages Jan 3, 2015 – Jan 12, 2015

lore
Share & tools
lore
#0 lore raw

cover Fix new typos found by codespell

Happy New Year to everybody!

Regards
Stefan

[PATCH 1/3] target-tricore: Fix new typos
[PATCH 2/3] target-arm: Fix typo in comment (seperately -> separately) [PATCH 3/3] misc: Fix new typos in comments

#1 lore raw

PATCH 1/3 target-tricore: Fix new typos

adress -> address
managment -> management

Cc Bastian Koppelmann <[email protected]>
---
 target-tricore/csfr.def          |    2 +-
 target-tricore/translate.c       |    2 +-
 target-tricore/tricore-opcodes.h |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
target-tricore/csfr.def +1 -1
index 5b219b4..05c45dd 100644
@@ -90,7 +90,7 @@ A(0xE200, CPM0, TRICORE_FEATURE_13)
 A(0xE280, CPM1, TRICORE_FEATURE_13)
 A(0xE300, CPM2, TRICORE_FEATURE_13)
 A(0xE380, CPM3, TRICORE_FEATURE_13)
-/* memory Managment Registers */
+/* memory management registers */
 A(0x8000, MMU_CON, TRICORE_FEATURE_13)
 A(0x8004, MMU_ASI, TRICORE_FEATURE_13)
 A(0x800C, MMU_TVA, TRICORE_FEATURE_13)
target-tricore/translate.c +1 -1
index dbcf87e..d20922b 100644
@@ -5022,7 +5022,7 @@ static void decode_32Bit_opc(CPUTriCoreState *env, DisasContext *ctx)
     case OPCM_32_RR_LOGICAL_SHIFT:
         decode_rr_logical_shift(env, ctx);
         break;
-    case OPCM_32_RR_ADRESS:
+    case OPCM_32_RR_ADDRESS:
         decode_rr_address(env, ctx);
         break;
     case OPCM_32_RR_IDIRECT:
target-tricore/tricore-opcodes.h +2 -2
index 919063e..82bd161 100644
@@ -503,7 +503,7 @@ enum {
 /* RR Format */
     OPCM_32_RR_LOGICAL_SHIFT                         = 0x0f,
     OPCM_32_RR_ACCUMULATOR                           = 0x0b,
-    OPCM_32_RR_ADRESS                                = 0x01,
+    OPCM_32_RR_ADDRESS                               = 0x01,
     OPCM_32_RR_DIVIDE                                = 0x4b,
     OPCM_32_RR_IDIRECT                               = 0x2d,
 /* RR1 Format */
@@ -1082,7 +1082,7 @@ enum {
     OPC2_32_RR_XOR_LT_U                          = 0x32,
     OPC2_32_RR_XOR_NE                            = 0x30,
 };
-/* OPCM_32_RR_ADRESS                                */
+/* OPCM_32_RR_ADDRESS                               */
 enum {
     OPC2_32_RR_ADD_A                             = 0x01,
     OPC2_32_RR_ADDSC_A                           = 0x60,
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH 2/3 target-arm: Fix typo in comment (seperately -> separately)

In reply to Stefan Weil
Cc Peter Maydell <[email protected]>
Cc Greg Bellows <[email protected]>
---
 target-arm/helper.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target-arm/helper.c +1 -1
index 3ef0f1f..1a5e067 100644
@@ -972,7 +972,7 @@ static const ARMCPRegInfo v7_cp_reginfo[] = {
      * The override is necessary because of the overly-broad TLB_LOCKDOWN
      * definition.
      */
-     /* MAIR0/1 are defined seperately from their 64-bit counterpart which
+     /* MAIR0/1 are defined separately from their 64-bit counterpart which
       * allows them to assign the correct fieldoffset based on the endianness
       * handled in the field definitions.
       */
Signature · 1 line
1.7.10.4
#3 lore raw

PATCH 3/3 misc: Fix new typos in comments

In reply to Stefan Weil

recieve -> receive
suprise -> surprise

Cc Igor Mammedov <[email protected]>
Cc John Snow <[email protected]>
---
 include/hw/hotplug.h |    2 +-
 tests/ahci-test.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/hw/hotplug.h +1 -1
index 050d2f0..2db025d 100644
@@ -52,7 +52,7 @@ typedef void (*hotplug_fn)(HotplugHandler *plug_handler,
  *                  require asynchronous unplug handling.
  * @unplug: unplug callback.
  *          Used for device removal with devices that implement
- *          asynchronous and synchronous (suprise) removal.
+ *          asynchronous and synchronous (surprise) removal.
  */
 typedef struct HotplugHandlerClass {
     /* <private> */
tests/ahci-test.c +1 -1
index e77fa3a..b1a59f2 100644
@@ -1289,7 +1289,7 @@ static void ahci_test_identify(QPCIDevice *ahci, void *hba_base)
     PX_WREG(i, AHCI_PX_IS, reg);
     g_assert_cmphex(PX_RREG(i, AHCI_PX_IS), ==, 0);
 
-    /* Wipe the FIS-Recieve Buffer */
+    /* Wipe the FIS-Receive Buffer */
     fb = PX_RREG(i, AHCI_PX_FB);
     g_assert_cmphex(fb, !=, 0);
     qmemset(fb, 0x00, 0x100);
Signature · 1 line
1.7.10.4
Reviewed-by on v1 3/3
#4 lore raw

Re: [Qemu-devel] [PATCH 3/3] misc: Fix new typos in comments

Quoted 30 lines · Stefan Weil

recieve -> receive
suprise -> surprise

Cc Igor Mammedov <[email protected]>
Cc John Snow <[email protected]>
---
  include/hw/hotplug.h |    2 +-
  tests/ahci-test.c    |    2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
include/hw/hotplug.h +1 -1
index 050d2f0..2db025d 100644
@@ -52,7 +52,7 @@ typedef void (*hotplug_fn)(HotplugHandler *plug_handler,
   *                  require asynchronous unplug handling.
   * @unplug: unplug callback.
   *          Used for device removal with devices that implement
- *          asynchronous and synchronous (suprise) removal.
+ *          asynchronous and synchronous (surprise) removal.
   */
  typedef struct HotplugHandlerClass {
      /* <private> */
tests/ahci-test.c +0 -0
index e77fa3a..b1a59f2 100644

tests/ahci-test.c static void ahci_test_identify(QPCIDevice *ahci, void *hba_base) · line 1295

Quoted 8 lines
tests/ahci-test.c +1 -1
@@ -1289,7 +1289,7 @@ static void ahci_test_identify(QPCIDevice *ahci, void *hba_base)
      PX_WREG(i, AHCI_PX_IS, reg);
      g_assert_cmphex(PX_RREG(i, AHCI_PX_IS), ==, 0);
 
-    /* Wipe the FIS-Recieve Buffer */
+    /* Wipe the FIS-Receive Buffer */
      fb = PX_RREG(i, AHCI_PX_FB);
      g_assert_cmphex(fb, !=, 0);
      qmemset(fb, 0x00, 0x100);

I seem to have missed a certain elementary school rhyme.

#5 lore raw
In reply to Stefan Weil
Quoted 3 lines · Stefan Weil

[PATCH 1/3] target-tricore: Fix new typos
[PATCH 2/3] target-arm: Fix typo in comment (seperately -> separately) [PATCH 3/3] misc: Fix new typos in comments

Applied all to -trivial, thank you!

/mjt