OSDN Git Service

accel/tcg: Add cpu_{ld,st}*_mmu interfaces
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 27 Jul 2021 17:48:55 +0000 (07:48 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 13 Oct 2021 15:09:53 +0000 (08:09 -0700)
commitf83bcecb1ffe25a18367409eaf4ba1453c835c48
treeb54b264b8a76479c17a51f0416dd5d64fdc58cc8
parentf79e80899dbcd306ae2e8a43bc5e139b051f30f4
accel/tcg: Add cpu_{ld,st}*_mmu interfaces

These functions are much closer to the softmmu helper
functions, in that they take the complete MemOpIdx,
and from that they may enforce required alignment.

The previous cpu_ldst.h functions did not have alignment info,
and so did not enforce it.  Retain this by adding MO_UNALN to
the MemOp that we create in calling the new functions.

Note that we are not yet enforcing alignment for user-only,
but we now have the information with which to do so.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c
accel/tcg/ldst_common.c.inc [new file with mode: 0644]
accel/tcg/user-exec.c
docs/devel/loads-stores.rst
include/exec/cpu_ldst.h