OSDN Git Service

hw/mips/boston: Use bootloader helper to set GCRs
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Wed, 27 Jan 2021 06:54:24 +0000 (14:54 +0800)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 21 Feb 2021 17:41:46 +0000 (18:41 +0100)
commit283eae174e4944e4f26160aceeec444a13e52b03
tree06639bee3994a0c7fafd448b33976a8b7ac55d56
parent112658eb26382a7e9717d8bef716ac4675799719
hw/mips/boston: Use bootloader helper to set GCRs

Translate embedded assembly into IO writes which is more
readable.

Also hardcode cm_base at boot time instead of reading from CP0.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210127065424.114125-5-jiaxun.yang@flygoat.com>
[PMD: Kept code comments]
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/mips/boston.c