Message ID | 20220324190854.156898-1-leandro.lupori@eldorado.org.br (mailing list archive) |
---|---|
Headers | show |
Series | Port PPC64/PowerNV MMU tests to QEMU | expand |
On 3/24/22 13:08, Leandro Lupori wrote: > 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. I think you're simply thinking too small here, and should consider using the attn instruction to implement a full -semihosting interface. You might as well join arm and riscv with CONFIG_ARM_COMPATIBLE_SEMIHOSTING. r~
Richard Henderson <richard.henderson@linaro.org> writes: > On 3/24/22 13:08, Leandro Lupori wrote: >> 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. > > I think you're simply thinking too small here, and should consider using the attn > instruction to implement a full -semihosting interface. You might as well join arm and > riscv with CONFIG_ARM_COMPATIBLE_SEMIHOSTING. I can't reach the semihosting docs at: https://static.docs.arm.com/100863/0200/semihosting.pdf Do we need to replace that URL with something else? > > > r~
On 3/28/22 08:54, Fabiano Rosas wrote: > I can't reach the semihosting docs at: > https://static.docs.arm.com/100863/0200/semihosting.pdf > > Do we need to replace that URL with something else? It has been moved to https://developer.arm.com/documentation/100863/latest r~
On 3/26/22 14:13, Richard Henderson wrote: > On 3/24/22 13:08, Leandro Lupori wrote: >> 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. > > I think you're simply thinking too small here, and should consider using the attn instruction to implement a full -semihosting interface. You might as well join arm and riscv with CONFIG_ARM_COMPATIBLE_SEMIHOSTING. yes. This looks like a good interface. We need an instruction to generate the semihosting calls. Thanks, C.