On 4/18/22 12:10, Leandro Lupori wrote:
Add semihosting support for PPC64. This implementation is
based on the standard for ARM semihosting version 2.0, as
implemented by QEMU and documented in

     https://github.com/ARM-software/abi-aa/releases

The PPC64 specific differences are the following:

Semihosting Trap Instruction: sc 7
Operation Number Register: r3
Parameter Register: r4
Return Register: r3
Data block field size: 64 bits

Signed-off-by: Leandro Lupori<leandro.lup...@eldorado.org.br>
---
  configs/devices/ppc64-softmmu/default.mak |  3 +++
  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 ++++++++++
  6 files changed, 72 insertions(+), 8 deletions(-)

Modulo whatever sc number yall settle on,

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to