aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongjiu Geng <gengdongjiu@huawei.com>2018-10-08 14:55:02 +0100
committerPeter Maydell <peter.maydell@linaro.org>2018-10-08 14:55:02 +0100
commitc8a44709861869feff478dac6062f04b7411b04f (patch)
tree69398c68ef4579b636f071a6355d2155142893e9
parent079911cb6e26898e16f5bb56ef4f9d33cf92d32d (diff)
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. Signed-off-by: Dongjiu Geng <gengdongjiu@huawei.com> Message-id: 1538069046-5757-1-git-send-email-gengdongjiu@huawei.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--target/arm/kvm.c2
-rw-r--r--target/arm/kvm_arm.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/target/arm/kvm.c b/target/arm/kvm.c
index 65f867d569..54ef5f711b 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 863f205822..5948e8b560 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).
*