From: Leandro Lupori <leandro.lupori@eldorado.org.br>
To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org
Cc: Leandro Lupori <leandro.lupori@eldorado.org.br>,
danielhb413@gmail.com, richard.henderson@linaro.org,
groug@kaod.org, clg@kaod.org, pbonzini@redhat.com,
alex.bennee@linaro.org, david@gibson.dropbear.id.au
Subject: [RFC PATCH 0/6] Port PPC64/PowerNV MMU tests to QEMU
Date: Thu, 24 Mar 2022 16:08:48 -0300 [thread overview]
Message-ID: <20220324190854.156898-1-leandro.lupori@eldorado.org.br> (raw)
Add support to run softmmu tests for ppc64 and ppc64le.
To make it possible, a new "virtual" TCG test target,
ppc64le-softmmu, was created.
Also add the MMU tests from
https://github.com/legoater/pnv-test, that are the Microwatt
tests adapted to use a PowerNV console and to better integrate
with QEMU test infrastructure.
To be able to finish the test and return an exit code to the
calling process, the Processor Attention instruction is used.
As its behavior is implementation dependent, in QEMU PowerNV
it just calls exit with GPR[3] value, truncated to an uint8_t.
Cédric Le Goater (2):
target/ppc: Add support for the Processor Attention instruction
ppc/pnv: Activate support for the Processor Attention instruction
Leandro Lupori (4):
tests/tcg/ppc64: add basic softmmu test support
tests/tcg: add support for ppc64le softmmu tests
tests/tcg/ppc64: add MMU test sources
tests/tcg/ppc64: add rules to build PowerNV tests
hw/ppc/pnv_core.c | 6 +
include/hw/ppc/pnv_core.h | 1 +
target/ppc/cpu.h | 8 +
target/ppc/excp_helper.c | 27 +
target/ppc/helper.h | 1 +
target/ppc/translate.c | 14 +
tests/Makefile.include | 7 +-
tests/tcg/configure.sh | 11 +-
tests/tcg/ppc64/Makefile.softmmu-target | 80 +++
tests/tcg/ppc64/system/include/asm.h | 62 ++
tests/tcg/ppc64/system/include/console.h | 15 +
tests/tcg/ppc64/system/include/io.h | 61 ++
tests/tcg/ppc64/system/include/pnv.h | 21 +
tests/tcg/ppc64/system/include/uart.h | 54 ++
tests/tcg/ppc64/system/lib/boot.S | 68 ++
tests/tcg/ppc64/system/lib/console.c | 173 +++++
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 +
tests/tcg/ppc64le/Makefile.softmmu-target | 7 +
21 files changed, 1554 insertions(+), 4 deletions(-)
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/include/console.h
create mode 100644 tests/tcg/ppc64/system/include/io.h
create mode 100644 tests/tcg/ppc64/system/include/pnv.h
create mode 100644 tests/tcg/ppc64/system/include/uart.h
create mode 100644 tests/tcg/ppc64/system/lib/boot.S
create mode 100644 tests/tcg/ppc64/system/lib/console.c
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
create mode 100644 tests/tcg/ppc64le/Makefile.softmmu-target
--
2.25.1
next reply other threads:[~2022-03-24 19:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-24 19:08 Leandro Lupori [this message]
2022-03-24 19:08 ` [RFC PATCH 1/6] target/ppc: Add support for the Processor Attention instruction Leandro Lupori
2022-03-25 15:11 ` Fabiano Rosas
2022-03-26 3:15 ` David Gibson
2022-03-26 13:04 ` Richard Henderson
2022-03-28 15:46 ` Cédric Le Goater
2022-03-24 19:08 ` [RFC PATCH 2/6] ppc/pnv: Activate " Leandro Lupori
2022-03-24 19:08 ` [RFC PATCH 3/6] tests/tcg/ppc64: add basic softmmu test support Leandro Lupori
2022-03-24 19:08 ` [RFC PATCH 4/6] tests/tcg: add support for ppc64le softmmu tests Leandro Lupori
2022-03-24 20:34 ` Alex Bennée
2022-03-24 21:11 ` Leandro Lupori
2022-03-25 9:50 ` Alex Bennée
2022-03-31 14:27 ` Leandro Lupori
2022-03-24 19:08 ` [RFC PATCH 5/6] tests/tcg/ppc64: add MMU test sources Leandro Lupori
2022-03-24 19:08 ` [RFC PATCH 6/6] tests/tcg/ppc64: add rules to build PowerNV tests Leandro Lupori
2022-03-26 13:13 ` [RFC PATCH 0/6] Port PPC64/PowerNV MMU tests to QEMU Richard Henderson
2022-03-28 14:54 ` Fabiano Rosas
2022-03-28 14:59 ` Richard Henderson
2022-03-28 16:24 ` Cédric Le Goater
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220324190854.156898-1-leandro.lupori@eldorado.org.br \
--to=leandro.lupori@eldorado.org.br \
--cc=alex.bennee@linaro.org \
--cc=clg@kaod.org \
--cc=danielhb413@gmail.com \
--cc=david@gibson.dropbear.id.au \
--cc=groug@kaod.org \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.