diff mbox series

target/arm: fix code comments error

Message ID 1538069046-5757-1-git-send-email-gengdongjiu@huawei.com (mailing list archive)
State New, archived
Headers show
Series target/arm: fix code comments error | expand

Commit Message

Dongjiu Geng Sept. 27, 2018, 5:24 p.m. UTC
The parameter of kvm_arm_init_cpreg_list() is ARMCPU instead of
CPUState, so correct the note to make it match the code.

Signed-off-by: Dongjiu Geng <gengdongjiu@huawei.com>
---
 target/arm/kvm.c     | 2 +-
 target/arm/kvm_arm.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Comments

Peter Maydell Oct. 2, 2018, 10:39 a.m. UTC | #1
On 27 September 2018 at 18:24, Dongjiu Geng <gengdongjiu@huawei.com> wrote:
> The parameter of kvm_arm_init_cpreg_list() is ARMCPU instead of
> CPUState, so correct the note to make it match the code.
>
> Signed-off-by: Dongjiu Geng <gengdongjiu@huawei.com>




Applied to target-arm.next, thanks.

-- PMM
diff mbox series

Patch

diff --git a/target/arm/kvm.c b/target/arm/kvm.c
index 65f867d..54ef5f7 100644
--- a/target/arm/kvm.c
+++ b/target/arm/kvm.c
@@ -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).
  */
diff --git a/target/arm/kvm_arm.h b/target/arm/kvm_arm.h
index 863f205..5948e8b 100644
--- a/target/arm/kvm_arm.h
+++ b/target/arm/kvm_arm.h
@@ -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).
  *