]> xenbits.xensource.com Git - qemu-xen.git/commit
accel/tcg: move ld/st helpers to ldst_common.c.inc
authorAnton Johansson <anjo@rev.ng>
Tue, 12 Sep 2023 15:34:28 +0000 (17:34 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 4 Oct 2023 18:03:54 +0000 (11:03 -0700)
commit27c46fadf6724b68dcbe275479f86992f33d7c24
tree9eaaa56223d45aed88a6a6d78c4dd1b14bf24192
parente20f73fba5240dce86f0b49c01b2c824a0ce9f1f
accel/tcg: move ld/st helpers to ldst_common.c.inc

A large chunk of ld/st functions are moved from cputlb.c and user-exec.c
to ldst_common.c.inc as their implementation is the same between both
modes.

Eventually, ldst_common.c.inc could be compiled into a separate
target-specific compilation unit, and be linked in with the targets.
Keeping CPUArchState usage out of cputlb.c (CPUArchState is primarily
used to access the mmu index in these functions).

Signed-off-by: Anton Johansson <anjo@rev.ng>
Message-Id: <20230912153428.17816-12-anjo@rev.ng>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c
accel/tcg/ldst_common.c.inc
accel/tcg/user-exec.c