]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/sparc: Use GET_ASI_CODE for ASI_KERNELTXT and ASI_USERTXT
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 12 Apr 2024 00:30:07 +0000 (17:30 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 12 Apr 2024 21:48:01 +0000 (14:48 -0700)
commit2786a3f8d3a047cc21271380324c0b7d8217f238
treef1830c352fa2b55fdc3529ac4ad6a201f782904f
parentbe72d6ab361a26878752467a17289066dfd5bc28
target/sparc: Use GET_ASI_CODE for ASI_KERNELTXT and ASI_USERTXT

Reads are done with execute access.  It is not clear whether writes
are legal at all -- for now, leave helper_st_asi unchanged, so that
we continue to raise an mmu fault.

This generalizes the exiting code for ASI_KERNELTXT to be usable for
ASI_USERTXT as well, by passing down the MemOpIdx to use.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2281
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2059
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1609
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1166
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tested-by: M Bazz <bazz@bazz1.com>
target/sparc/helper.h
target/sparc/ldst_helper.c
target/sparc/translate.c