[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH v3 1/5] ppc64: Add semihosting support

From: Richard Henderson
Subject: Re: [RFC PATCH v3 1/5] ppc64: Add semihosting support
Date: Mon, 18 Apr 2022 16:33:54 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0

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


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.lupori@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.henderson@linaro.org>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]