aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpu-exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu-exec.c b/cpu-exec.c
index 956504d827..1f08934cb7 100644
--- a/cpu-exec.c
+++ b/cpu-exec.c
@@ -378,7 +378,7 @@ int cpu_exec(CPUState *env1)
return ret;
}
-#if defined(TARGET_I386)
+#if defined(TARGET_I386) && defined(CONFIG_USER_ONLY)
void cpu_x86_load_seg(CPUX86State *s, int seg_reg, int selector)
{