This minimal CPC support is one of the elements required to allow R6 Linux to bring up Virtual Processors on Malta board. This patch applies on top of Yongbok's GIC/GCR patchset which still requires updating/fixing (that probably will also affect CPC, in particular when we come up with a wrapper for the CPU, GIC, GCR, etc.). Hopefully this will get sorted out soon so we could include these functionalities in 2.6 release.
Next step can be extending the feature to support multi-core. Also, these features will be handy for testing MIPS with MTTCG which is something I hope to start in near future. Thanks, Leon Leon Alrae (2): hw/mips: add initial Cluster Power Controller support hw/mips_malta: add CPC to the Malta board default-configs/mips-softmmu.mak | 1 + default-configs/mips64-softmmu.mak | 1 + default-configs/mips64el-softmmu.mak | 1 + default-configs/mipsel-softmmu.mak | 1 + hw/mips/mips_malta.c | 30 +++++++++ hw/misc/Makefile.objs | 1 + hw/misc/mips_cpc.c | 124 +++++++++++++++++++++++++++++++++++ include/hw/misc/mips_cpc.h | 45 +++++++++++++ 8 files changed, 204 insertions(+) create mode 100644 hw/misc/mips_cpc.c create mode 100644 include/hw/misc/mips_cpc.h -- 2.1.0