[RFC PATCH v3 0/5] Port PPC64/PowerNV MMU tests to QEMU

Leandro Lupori posted 5 patches 2 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220418191100.270334-1-leandro.lupori@eldorado.org.br
Maintainers: "Alex Bennée" <alex.bennee@linaro.org>, "Cédric Le Goater" <clg@kaod.org>, Daniel Henrique Barboza <danielhb413@gmail.com>, David Gibson <david@gibson.dropbear.id.au>, Greg Kurz <groug@kaod.org>, Leandro Lupori <leandro.lupori@eldorado.org.br>
MAINTAINERS                               |   2 +
configs/devices/ppc64-softmmu/default.mak |   3 +
include/exec/softmmu-semi.h               |  23 +-
qemu-options.hx                           |  18 +-
semihosting/arm-compat-semi.c             |  33 +
target/ppc/cpu.h                          |   3 +-
target/ppc/excp_helper.c                  |   9 +
target/ppc/translate.c                    |  14 +
tests/tcg/ppc64/Makefile.softmmu-rules    |  34 +
tests/tcg/ppc64/Makefile.softmmu-target   | 125 ++++
tests/tcg/ppc64/system/include/asm.h      |  68 ++
tests/tcg/ppc64/system/lib/boot.S         |  84 +++
tests/tcg/ppc64/system/lib/powerpc.lds    |  27 +
tests/tcg/ppc64/system/mmu-head.S         | 142 ++++
tests/tcg/ppc64/system/mmu.c              | 764 ++++++++++++++++++++++
tests/tcg/ppc64/system/mmu.h              |   9 +
16 files changed, 1346 insertions(+), 12 deletions(-)
create mode 100644 tests/tcg/ppc64/Makefile.softmmu-rules
create mode 100644 tests/tcg/ppc64/Makefile.softmmu-target
create mode 100644 tests/tcg/ppc64/system/include/asm.h
create mode 100644 tests/tcg/ppc64/system/lib/boot.S
create mode 100644 tests/tcg/ppc64/system/lib/powerpc.lds
create mode 100644 tests/tcg/ppc64/system/mmu-head.S
create mode 100644 tests/tcg/ppc64/system/mmu.c
create mode 100644 tests/tcg/ppc64/system/mmu.h
[RFC PATCH v3 0/5] Port PPC64/PowerNV MMU tests to QEMU
Posted by Leandro Lupori 2 years ago
Changes from v2:
- Added semihosting support for ppc64
- Use semihosting calls to exit tests, instead of using Processor
Attention instruction
- Use semihosting calls for console output, instead of programming
emulated serial hardware

Leandro Lupori (5):
  ppc64: Add semihosting support
  ppc64: Fix semihosting on ppc64le
  tests/tcg/ppc64: Add basic softmmu test support
  tests/tcg/ppc64: Add MMU test sources
  tests/tcg/ppc64: Build PowerNV and LE tests

 MAINTAINERS                               |   2 +
 configs/devices/ppc64-softmmu/default.mak |   3 +
 include/exec/softmmu-semi.h               |  23 +-
 qemu-options.hx                           |  18 +-
 semihosting/arm-compat-semi.c             |  33 +
 target/ppc/cpu.h                          |   3 +-
 target/ppc/excp_helper.c                  |   9 +
 target/ppc/translate.c                    |  14 +
 tests/tcg/ppc64/Makefile.softmmu-rules    |  34 +
 tests/tcg/ppc64/Makefile.softmmu-target   | 125 ++++
 tests/tcg/ppc64/system/include/asm.h      |  68 ++
 tests/tcg/ppc64/system/lib/boot.S         |  84 +++
 tests/tcg/ppc64/system/lib/powerpc.lds    |  27 +
 tests/tcg/ppc64/system/mmu-head.S         | 142 ++++
 tests/tcg/ppc64/system/mmu.c              | 764 ++++++++++++++++++++++
 tests/tcg/ppc64/system/mmu.h              |   9 +
 16 files changed, 1346 insertions(+), 12 deletions(-)
 create mode 100644 tests/tcg/ppc64/Makefile.softmmu-rules
 create mode 100644 tests/tcg/ppc64/Makefile.softmmu-target
 create mode 100644 tests/tcg/ppc64/system/include/asm.h
 create mode 100644 tests/tcg/ppc64/system/lib/boot.S
 create mode 100644 tests/tcg/ppc64/system/lib/powerpc.lds
 create mode 100644 tests/tcg/ppc64/system/mmu-head.S
 create mode 100644 tests/tcg/ppc64/system/mmu.c
 create mode 100644 tests/tcg/ppc64/system/mmu.h

-- 
2.25.1