Hello, Here is a little serie adding some fixes for the XSCOM registers of the POWER9 cores and a unit test.
Changes since v1 : - fixed pnv_xscom_addr() for 32bit host systems - replace hweight_long() by ctpop64() Tested on a 32-bit LE system and on 64-bit LE and BE systems. Thanks, C. Cédric Le Goater (3): ppc/pnv: add a 'xscom_core_base' field to PnvChipClass ppc/pnv: fix xscom address translation for POWER9 tests: add XSCOM tests for the PowerNV machine David Gibson (1): ppc/pnv: Fix fatal bug on 32-bit hosts hw/ppc/pnv.c | 10 +++- hw/ppc/pnv_xscom.c | 8 +-- include/hw/ppc/pnv.h | 1 + include/hw/ppc/pnv_xscom.h | 5 +- tests/Makefile.include | 1 + tests/pnv-xscom-test.c | 140 +++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 156 insertions(+), 9 deletions(-) create mode 100644 tests/pnv-xscom-test.c -- 2.7.4