Skip to contentSkip to conversation

target/arm: fix code comments error

PATCH Applied Dongjiu Geng 2 participants 2 messages Sep 27, 2018 – Oct 2, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/arm: fix code comments error

The parameter of kvm_arm_init_cpreg_list() is ARMCPU instead of CPUState, so correct the note to make it match the code.

---
 target/arm/kvm.c     | 2 +-
 target/arm/kvm_arm.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
target/arm/kvm.c +1 -1
index 65f867d..54ef5f7 100644
@@ -310,7 +310,7 @@ static int compare_u64(const void *a, const void *b)
     return 0;
 }
 
-/* Initialize the CPUState's cpreg list according to the kernel's
+/* Initialize the ARMCPU cpreg list according to the kernel's
  * definition of what CPU registers it knows about (and throw away
  * the previous TCG-created cpreg list).
  */
target/arm/kvm_arm.h +2 -2
index 863f205..5948e8b 100644
@@ -50,9 +50,9 @@ void kvm_arm_register_device(MemoryRegion *mr, uint64_t devid, uint64_t group,
 
 /**
  * kvm_arm_init_cpreg_list:
- * @cs: CPUState
+ * @cpu: ARMCPU
  *
- * Initialize the CPUState's cpreg list according to the kernel's
+ * Initialize the ARMCPU cpreg list according to the kernel's
  * definition of what CPU registers it knows about (and throw away
  * the previous TCG-created cpreg list).
  *
Signature · 1 line
1.9.1
#1 lore raw
Quoted 4 lines · Dongjiu Geng

The parameter of kvm_arm_init_cpreg_list() is ARMCPU instead of CPUState, so correct the note to make it match the code.

Applied to target-arm.next, thanks.

-- PMM