summaryrefslogtreecommitdiff
path: root/drivers/bios_emulator/x86emu/decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bios_emulator/x86emu/decode.c')
-rw-r--r--drivers/bios_emulator/x86emu/decode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/bios_emulator/x86emu/decode.c b/drivers/bios_emulator/x86emu/decode.c
index 1e2dcfe..7a9a1dd 100644
--- a/drivers/bios_emulator/x86emu/decode.c
+++ b/drivers/bios_emulator/x86emu/decode.c
@@ -36,6 +36,9 @@
* instruction decoding and accessess of immediate data via IP. etc.
*
****************************************************************************/
+#include <common.h>
+
+#if defined(CONFIG_BIOSEMU)
#include "x86emu/x86emui.h"
@@ -1142,3 +1145,5 @@ unsigned decode_rmXX_address(int mod, int rm)
return decode_rm01_address(rm);
return decode_rm10_address(rm);
}
+
+#endif