在 2022/10/10 22:43, Peter Maydell 写道:
On Mon, 10 Oct 2022 at 15:20, Richard Henderson
<[email protected]> wrote:
On 9/17/22 00:43, Song Gao wrote:
We can use alternate stack, so that we can use sp register as intput/ouput
register.
I had tested aarch64/LoongArch architecture.
Signed-off-by: Song Gao<[email protected]>
---
risu.c | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
Good idea.
Depending on the architecture there might still need to be
restrictions on use of the stack pointer, eg aarch64's
alignment requirements, but this at least means you can
in theory write some risu rules that use SP.
I really want use alternate stack, this way can reduce risu rules.
what about use this only on LoongArch architecture ?
Thanks.
Song Gao