Skip to content

Commit 0734b4f

Browse files
Wayne Rennashif
authored andcommitted
board: nsim_em: fix the bug in nsim host timer
* the nsim host timer does not work as expected, disable it, use cycle count to simulate timer tick * optmize the freq definition of nsim_em Signed-off-by: Wayne Ren <[email protected]>
1 parent 7ed687d commit 0734b4f

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

boards/arc/nsim_em/support/nsim.props

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
nsim_isa_bitscan_option=1
1717
nsim_isa_mpy_option=8
1818
nsim_isa_shift_option=3
19-
nsim_isa_host_timer=1
20-
nsim_isa_host_timer_mhz=10
2119
mpu_regions=16
2220
mpu_version=2
2321
nsim_isa_dsp_option=2

boards/arc/nsim_em/support/nsim_sem.props

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
nsim_isa_bitscan_option=1
1616
nsim_isa_mpy_option=8
1717
nsim_isa_shift_option=3
18-
nsim_isa_host_timer=1
19-
nsim_isa_host_timer_mhz=10
2018
nsim_isa_dsp_option=2
2119
nsim_isa_dsp_complex_option=1
2220
nsim_isa_dsp_divsqrt_option=1

soc/arc/snps_nsim/Kconfig.defconfig.em

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ config RGF_NUM_BANKS
2525
default 2
2626

2727
config SYS_CLOCK_HW_CYCLES_PER_SEC
28-
default 10000000
28+
default 5000000
2929

3030
config HARVARD
3131
default y

soc/arc/snps_nsim/Kconfig.defconfig.sem

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ config RGF_NUM_BANKS
2525
default 1
2626

2727
config SYS_CLOCK_HW_CYCLES_PER_SEC
28-
default 10000000
28+
default 5000000
2929

3030
config HARVARD
3131
default y

0 commit comments

Comments
 (0)