]> git.proxmox.com Git - mirror_qemu.git/commit
openrisc/cputimer: Perparation for Multicore
authorStafford Horne <shorne@gmail.com>
Mon, 21 Aug 2017 21:37:10 +0000 (06:37 +0900)
committerStafford Horne <shorne@gmail.com>
Fri, 20 Oct 2017 21:35:47 +0000 (06:35 +0900)
commit6b4bbd6aeb8e187c0e3be58c8f77a484f82e6f87
tree9f45d3d741dcb0971bf4be0add6250d9deb0a92d
parent8c949951ed257567303c3d3b83bcd876b53d79e5
openrisc/cputimer: Perparation for Multicore

In order to support multicore system we move some of the previously
static state variables into the state of each core.

On the other hand in order to allow timers to be synced between each
code the ttcr (tick timer count register) is moved out of the core.
This is not as per real hardware spec which has a separate timer counter
per core, but it seems the most simple way to keep each clock in sync.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>
hw/openrisc/cputimer.c
target/openrisc/cpu.c
target/openrisc/cpu.h
target/openrisc/machine.c
target/openrisc/sys_helper.c