Skip to contentSkip to conversation

target/rx: Fix copy/paste typo (riscv -> rx)

PATCH Applied Philippe Mathieu-Daudé 2 participants 3 messages Apr 1, 2025 – Apr 3, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/rx: Fix copy/paste typo (riscv -> rx)

Rename riscv_cpu_mmu_index() -> rx_cpu_mmu_index().

Fixes ef5cc166da1 ("target/rx: Populate CPUClass.mmu_index")
---
 target/rx/cpu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
target/rx/cpu.c +2 -2
index 65e26e7a6b6..723262f4b54 100644
@@ -67,7 +67,7 @@ static bool rx_cpu_has_work(CPUState *cs)
         (CPU_INTERRUPT_HARD | CPU_INTERRUPT_FIR);
 }
 
-static int riscv_cpu_mmu_index(CPUState *cs, bool ifunc)
+static int rx_cpu_mmu_index(CPUState *cs, bool ifunc)
 {
     return 0;
 }
@@ -228,7 +228,7 @@ static void rx_cpu_class_init(ObjectClass *klass, void *data)
                                        &rcc->parent_phases);
 
     cc->class_by_name = rx_cpu_class_by_name;
-    cc->mmu_index = riscv_cpu_mmu_index;
+    cc->mmu_index = rx_cpu_mmu_index;
     cc->dump_state = rx_cpu_dump_state;
     cc->set_pc = rx_cpu_set_pc;
     cc->get_pc = rx_cpu_get_pc;
Signature · 1 line
2.47.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Philippe Mathieu-Daudé

Rename riscv_cpu_mmu_index() -> rx_cpu_mmu_index().

Fixes ef5cc166da1 ("target/rx: Populate CPUClass.mmu_index")
---
  target/rx/cpu.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

r~

Quoted 23 lines
target/rx/cpu.c +2 -2
index 65e26e7a6b6..723262f4b54 100644
@@ -67,7 +67,7 @@ static bool rx_cpu_has_work(CPUState *cs)
          (CPU_INTERRUPT_HARD | CPU_INTERRUPT_FIR);
  }
 
-static int riscv_cpu_mmu_index(CPUState *cs, bool ifunc)
+static int rx_cpu_mmu_index(CPUState *cs, bool ifunc)
  {
      return 0;
  }
@@ -228,7 +228,7 @@ static void rx_cpu_class_init(ObjectClass *klass, void *data)
                                         &rcc->parent_phases);
 
      cc->class_by_name = rx_cpu_class_by_name;
-    cc->mmu_index = riscv_cpu_mmu_index;
+    cc->mmu_index = rx_cpu_mmu_index;
      cc->dump_state = rx_cpu_dump_state;
      cc->set_pc = rx_cpu_set_pc;
      cc->get_pc = rx_cpu_get_pc;
#2 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 22 lines · Philippe Mathieu-Daudé

Rename riscv_cpu_mmu_index() -> rx_cpu_mmu_index().

Fixes ef5cc166da1 ("target/rx: Populate CPUClass.mmu_index")
---
  target/rx/cpu.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
target/rx/cpu.c +1 -1
index 65e26e7a6b6..723262f4b54 100644
@@ -67,7 +67,7 @@ static bool rx_cpu_has_work(CPUState *cs)
          (CPU_INTERRUPT_HARD | CPU_INTERRUPT_FIR);
  }
 
-static int riscv_cpu_mmu_index(CPUState *cs, bool ifunc)
+static int rx_cpu_mmu_index(CPUState *cs, bool ifunc)
  {
      return 0;
  }

target/rx/cpu.c static void rx_cpu_class_init(ObjectClass *klass, void *data) · line 234

Quoted 8 lines
target/rx/cpu.c +1 -1
@@ -228,7 +228,7 @@ static void rx_cpu_class_init(ObjectClass *klass, void *data)
                                         &rcc->parent_phases);
 
      cc->class_by_name = rx_cpu_class_by_name;
-    cc->mmu_index = riscv_cpu_mmu_index;
+    cc->mmu_index = rx_cpu_mmu_index;
      cc->dump_state = rx_cpu_dump_state;
      cc->set_pc = rx_cpu_set_pc;
      cc->get_pc = rx_cpu_get_pc;

Queued to tcg-next, thanks.

r~