OSDN Git Service

hw/mips_cmgcr: allow GCR base to be moved
authorPaul Burton <paul.burton@imgtec.com>
Thu, 8 Sep 2016 14:51:51 +0000 (15:51 +0100)
committerYongbok Kim <yongbok.kim@imgtec.com>
Tue, 21 Feb 2017 22:24:58 +0000 (22:24 +0000)
commit08944be1d91779aec4346cc569f87e4c915a944c
tree20277a473f58dddcb433fd6e2f4f68027398b5ae
parent796b288f7be875045670f963ce99991b3c8e96ac
hw/mips_cmgcr: allow GCR base to be moved

Support moving the GCR base address & updating the CPU's CP0 CMGCRBase
register appropriately. This is required if a platform needs to move its
GCRs away from other memory, as the MIPS Boston development board does
to avoid its flash memory.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
hw/misc/mips_cmgcr.c
include/hw/misc/mips_cmgcr.h