mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
796b288f7b
commit
08944be1d9
2 changed files with 20 additions and 0 deletions
|
@ -41,6 +41,9 @@
|
|||
#define GCR_L2_CONFIG_BYPASS_SHF 20
|
||||
#define GCR_L2_CONFIG_BYPASS_MSK ((0x1ULL) << GCR_L2_CONFIG_BYPASS_SHF)
|
||||
|
||||
/* GCR_BASE register fields */
|
||||
#define GCR_BASE_GCRBASE_MSK 0xffffffff8000ULL
|
||||
|
||||
/* GCR_GIC_BASE register fields */
|
||||
#define GCR_GIC_BASE_GICEN_MSK 1
|
||||
#define GCR_GIC_BASE_GICBASE_MSK 0xFFFFFFFE0000ULL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue