x86emul: also allow running the 32-bit harness on a 64-bit distro

In order to be able to verify the 32-bit variant builds and runs,
introduce a respective target (and the necessary other adjustments).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Jan Beulich committed 2018-11-20 15:07:09 +01:00
1 parent 3b68138580
commit 52c37f7ab9
3 files changed
+25 -1

No files matched your search

+1
View File
@@ -240,6 +240,7 @@ tools/security/xensec_tool
tools/tests/depriv/depriv-fd-checker
tools/tests/x86_emulator/*.bin
tools/tests/x86_emulator/*.tmp
tools/tests/x86_emulator/32/x86_emulate
tools/tests/x86_emulator/3dnow*.[ch]
tools/tests/x86_emulator/asm
tools/tests/x86_emulator/avx*.[ch]
+5
View File
@@ -0,0 +1,5 @@
override XEN_COMPILE_ARCH := x86_32
XEN_ROOT = $(CURDIR)/../../../..
vpath %.c ..
vpath %.h ..
include ../Makefile
+19 -1
View File
@@ -1,5 +1,5 @@
XEN_ROOT=$(CURDIR)/../../..
XEN_ROOT ?= $(CURDIR)/../../..
include $(XEN_ROOT)/tools/Rules.mk
TARGET := test_x86_emulator
@@ -23,6 +23,12 @@ TESTCASES := blowfish $(SIMD) $(FMA) $(SG)
OPMASK := avx512f avx512dq avx512bw
ifeq ($(origin XEN_COMPILE_ARCH),override)
HOSTCFLAGS += -m32
else
blowfish-cflags := ""
blowfish-cflags-x86_32 := "-mno-accumulate-outgoing-args -Dstatic="
@@ -144,6 +150,8 @@ $(addsuffix .h,$(SIMD) $(FMA) $(SG)): simd.h
xop.h: simd-fma.c
endif # 32-bit override
$(TARGET): x86-emulate.o cpuid.o test_x86_emulator.o evex-disp8.o wrappers.o
$(HOSTCC) $(HOSTCFLAGS) -o $@ $^
@@ -158,6 +166,16 @@ distclean: clean
.PHONY: install uninstall
install uninstall:
.PHONY: run32 clean32
ifeq ($(XEN_TARGET_ARCH),x86_64)
run32: $(addsuffix .h,$(TESTCASES)) $(addsuffix -opmask.h,$(OPMASK))
run32 clean32: %32:
$(MAKE) -C 32 $*
clean: clean32
else
run32 clean32: %32: %
endif
x86_emulate:
[ -L $@ ] || ln -sf $(XEN_ROOT)/xen/arch/x86/$@
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.