Skip to content

Commit

Permalink
target/arm: fix code comments error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gengdongjiu1 authored and pm215 committed Oct 8, 2018
1 parent 079911c commit c8a4470
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion target/arm/kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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).
*/
Expand Down
4 changes: 2 additions & 2 deletions target/arm/kvm_arm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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).
*
Expand Down

0 comments on commit c8a4470

Please sign in to comment.