From: kaf24@firebug.cl.cam.ac.uk Date: Thu, 18 May 2006 09:43:05 +0000 (+0100) Subject: Remove __TEST_HARNESS__ tests from x86_emulate: instead check for __XEN__ X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16047^2~34 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fc87244286f198347da3a6cf5a4f3bc61ea9b3ef;p=xen.git Remove __TEST_HARNESS__ tests from x86_emulate: instead check for __XEN__ Signed-off-by: Keir Fraser --- diff --git a/tools/tests/Makefile b/tools/tests/Makefile index afa6578619..263caffb46 100644 --- a/tools/tests/Makefile +++ b/tools/tests/Makefile @@ -4,8 +4,6 @@ include $(XEN_ROOT)/tools/Rules.mk TARGET := test_x86_emulator -HOSTCFLAGS += -D__TEST_HARNESS__ - .PHONY: all all: $(TARGET) diff --git a/xen/arch/x86/x86_emulate.c b/xen/arch/x86/x86_emulate.c index 7c28dd87b9..d13eb5689f 100644 --- a/xen/arch/x86/x86_emulate.c +++ b/xen/arch/x86/x86_emulate.c @@ -6,7 +6,7 @@ * Copyright (c) 2005 Keir Fraser */ -#ifdef __TEST_HARNESS__ +#ifndef __XEN__ #include #include #include @@ -1127,7 +1127,7 @@ x86_emulate_memop( return -1; } -#ifndef __TEST_HARNESS__ +#ifdef __XEN__ #include #include