diff options
author | Richard Henderson | 2021-07-28 07:41:04 +0200 |
---|---|---|
committer | Richard Henderson | 2021-11-02 12:00:52 +0100 |
commit | 37e891e38fe1e81fc468d8a000912f8e7ee61336 (patch) | |
tree | 5e5bdd0a63b37fc86d48dfc34244c20287e267ba /include/tcg | |
parent | accel/tcg: Report unaligned load/store for user-only (diff) | |
download | qemu-37e891e38fe1e81fc468d8a000912f8e7ee61336.tar.gz qemu-37e891e38fe1e81fc468d8a000912f8e7ee61336.tar.xz qemu-37e891e38fe1e81fc468d8a000912f8e7ee61336.zip |
tcg: Add helper_unaligned_{ld,st} for user-only sigbus
To be called from tcg generated code on hosts that support
unaligned accesses natively, in response to an access that
is supposed to be aligned.
Reviewed-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/tcg')
-rw-r--r-- | include/tcg/tcg-ldst.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/tcg/tcg-ldst.h b/include/tcg/tcg-ldst.h index 8c86365611..bf40942de4 100644 --- a/include/tcg/tcg-ldst.h +++ b/include/tcg/tcg-ldst.h @@ -70,5 +70,10 @@ void helper_be_stl_mmu(CPUArchState *env, target_ulong addr, uint32_t val, void helper_be_stq_mmu(CPUArchState *env, target_ulong addr, uint64_t val, MemOpIdx oi, uintptr_t retaddr); +#else + +void QEMU_NORETURN helper_unaligned_ld(CPUArchState *env, target_ulong addr); +void QEMU_NORETURN helper_unaligned_st(CPUArchState *env, target_ulong addr); + #endif /* CONFIG_SOFTMMU */ #endif /* TCG_LDST_H */ |