arm timer: get closer to wokring on gem5

Base addresses were wrong to start with.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-09-19 00:00:01 +00:00
parent 7ffee0c473
commit 31473ebb39
3 changed files with 28 additions and 21 deletions

View File

@@ -16622,6 +16622,8 @@ cntv_cval_el0 0xB439642
and new `IRQ number` section appears every second, when a clock interrupt is raised!
TODO make work on gem5. Fails with <<gem5-simulate-limit-reached>> at the first WFI done in main, which means that the interrupt is never raised.
Once an interrupt is raised, the interrupt itself sets up a new interrupt to happen in one second in the future after `cntv_cval_el0` is reached by the counter.
The timer is part of the aarch64 specification itself and is documented at: <<armarm8-db>> Chapter D10 "The Generic Timer in AArch64 state". The key registers to keep in mind are: