unicorn/qemu/target
Peter Maydell a9e087b252
target/sparc: Check for transaction failures in MMU passthrough ASIs
Currently the ld/st_asi helper functions make calls to the
ld*_phys() and st*_phys() functions for those ASIs which
imply direct accesses to physical addresses. These implicitly
rely on the unassigned_access hook to cause them to generate
an MMU fault if the access fails.

Switch to using the address_space_* functions instead, which
return a MemTxResult that we can check. This means that when
we switch SPARC over to using the do_transaction_failed hook
we'll still get the same MMU faults we did before.

This commit converts the ASIs which do "MMU passthrough".

Backports commit b9f5fdad49c74583dcf9fcba0805b148e3992e13 from qemu
2019-11-28 02:56:11 -05:00
..
arm target/arm: Inline gen_bx_im into callers 2019-11-28 02:54:09 -05:00
i386 x86: Intel AVX512_BF16 feature enabling 2019-11-18 22:06:57 -05:00
m68k target/m68k: replace LIT64 with UINT64_C macros 2019-11-18 21:05:59 -05:00
mips target/mips: Switch to do_transaction_failed() hook 2019-11-28 02:54:53 -05:00
riscv target/riscv: Remove redundant declaration pragmas 2019-11-18 21:22:09 -05:00
sparc target/sparc: Check for transaction failures in MMU passthrough ASIs 2019-11-28 02:56:11 -05:00