hw/mips: implement GIC Interval Timer
authorYongbok Kim <yongbok.kim@imgtec.com>
Tue, 29 Mar 2016 02:35:50 +0000 (19:35 -0700)
committerLeon Alrae <leon.alrae@imgtec.com>
Tue, 12 Jul 2016 08:10:09 +0000 (09:10 +0100)
commit405140519f58815b422db086b7461d6c00b79b57
treeeed6c81b93ea2de1f0e5bd9d8bc9087a0bcb4df4
parente2c8f9e44e07d8210049abaa6042ec3c956f1dd4
hw/mips: implement GIC Interval Timer

The interval timer is similar to the CP0 Count/Compare timer within
each processor. The difference is the GIC_SH_COUNTER register is global
to the system so that all processors have the same time reference.

To ease implementation, all VPs are having its own QEMU timer but sharing
global settings and registers such as GIC_SH_CONFIG.COUTNSTOP and
GIC_SH_COUNTER.

MIPS GIC Interval Timer does support upto 64 bits of Count register but
in this implementation it is limited to 32 bits only.

Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
hw/timer/Makefile.objs
hw/timer/mips_gictimer.c [new file with mode: 0644]
include/hw/timer/mips_gictimer.h [new file with mode: 0644]