mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Remove __TEST_HARNESS__ tests from x86_emulate: instead check for __XEN__
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
4ed20e3471
commit
fc87244286
2 files changed
+2
-4
No files matched your search
@@ -4,8 +4,6 @@ include $(XEN_ROOT)/tools/Rules.mk
|
||||
|
||||
TARGET := test_x86_emulator
|
||||
|
||||
HOSTCFLAGS += -D__TEST_HARNESS__
|
||||
|
||||
.PHONY: all
|
||||
all: $(TARGET)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* Copyright (c) 2005 Keir Fraser
|
||||
*/
|
||||
|
||||
#ifdef __TEST_HARNESS__
|
||||
#ifndef __XEN__
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <public/xen.h>
|
||||
@@ -1127,7 +1127,7 @@ x86_emulate_memop(
|
||||
return -1;
|
||||
}
|
||||
|
||||
#ifndef __TEST_HARNESS__
|
||||
#ifdef __XEN__
|
||||
|
||||
#include <asm/mm.h>
|
||||
#include <asm/uaccess.h>
|
||||
|
||||