qemu/tests/tcg/ppc64
Pierrick Bouvier 354b5c19b3 tests/tcg/multiarch: add test for plugin memory access
Add an explicit test to check expected memory values are read/written.
8,16,32 load/store are tested for all arch.
64,128 load/store are tested for aarch64/x64.
atomic operations (8,16,32,64) are tested for x64 only.

By default, atomic accesses are non atomic if a single cpu is running,
so we force creation of a second one by creating a new thread first.

load/store helpers code path can't be triggered easily in user mode (no
softmmu), so we can't test it here.

Output of test-plugin-mem-access.c is the list of expected patterns in
plugin output. By reading stdout, we can compare to plugins output and
have a multiarch test.

Can be run with:
make -C build/tests/tcg/$ARCH-linux-user run-plugin-test-plugin-mem-access-with-libmem.so

Tested-by: Xingtao Yao <yaoxt.fnst@fujitsu.com>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240910172033.1427812-7-pierrick.bouvier@linaro.org>
Message-Id: <20240916085400.1046925-10-alex.bennee@linaro.org>
2024-09-19 15:58:01 +01:00
..
bcdsub.c tests/tcg: unify ppc64 and ppc64le Makefiles 2022-10-06 11:53:40 +01:00
byte_reverse.c tests/tcg: unify ppc64 and ppc64le Makefiles 2022-10-06 11:53:40 +01:00
Makefile.target tests/tcg/multiarch: add test for plugin memory access 2024-09-19 15:58:01 +01:00
mffsce.c tests/tcg: unify ppc64 and ppc64le Makefiles 2022-10-06 11:53:40 +01:00
mtfsf.c tests/tcg: unify ppc64 and ppc64le Makefiles 2022-10-06 11:53:40 +01:00
non_signalling_xscv.c tests/tcg: unify ppc64 and ppc64le Makefiles 2022-10-06 11:53:40 +01:00
signal_save_restore_xer.c tests/tcg: unify ppc64 and ppc64le Makefiles 2022-10-06 11:53:40 +01:00
test-aes.c tests/multiarch: Add test-aes 2023-07-08 07:30:17 +01:00
vector.c tests: tcg: ppc64: Add tests for Vector Extract Mask Instructions 2023-05-05 12:34:22 -03:00
vsx_f2i_nan.c target/ppc: Fix bugs in VSX_CVT_FP_TO_INT and VSX_CVT_FP_TO_INT2 macros 2023-11-21 08:39:58 +01:00
xxspltw.c tests/tcg: unify ppc64 and ppc64le Makefiles 2022-10-06 11:53:40 +01:00