mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00

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>
18 lines
413 B
Makefile
18 lines
413 B
Makefile
# -*- Mode: makefile -*-
|
|
#
|
|
# Alpha specific tweaks
|
|
|
|
ALPHA_SRC=$(SRC_PATH)/tests/tcg/alpha
|
|
VPATH+=$(ALPHA_SRC)
|
|
|
|
ALPHA_TESTS=hello-alpha test-cond test-cmov test-ovf test-cvttq
|
|
TESTS+=$(ALPHA_TESTS)
|
|
|
|
test-cmov: EXTRA_CFLAGS=-DTEST_CMOV
|
|
test-cmov: test-cond.c
|
|
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
|
|
|
|
# Force generation of byte read/write
|
|
test-plugin-mem-access: CFLAGS+=-mbwx
|
|
|
|
run-test-cmov: test-cmov
|