arch: arm64: Do not set cntfrq_el0 in qemu_boot.c

Summary:
- During testing with qemu + kvm, I noticed that nuttx hangs
  when setting cntfrq_el0. With qemu + kvm, it starts from
  EL1 because we can not specify virtualization=on
- However, I noticed that it works without setting cntfrq_el0
- This commit fixes this issue

Impact:
- None

Testing:
- Tested with qemu-7.1 (both with kvm and without kvm)
- NOTE: to work with kvm, GICv2 must be used.

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa 2023-06-29 18:18:47 +09:00 committed by Xiang Xiao
parent 7af151aa51
commit cf6a134684
2 changed files with 0 additions and 5 deletions

View File

@ -138,9 +138,6 @@ uint64_t arm64_get_mpid(int cpu)
void arm64_el_init(void)
{
write_sysreg(CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC, cntfrq_el0);
ARM64_ISB();
}
/****************************************************************************

View File

@ -36,8 +36,6 @@
* Pre-processor Definitions
****************************************************************************/
#define CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC 62500000
/****************************************************************************
* Public Function Prototypes
****************************************************************************/