summaryrefslogtreecommitdiffstats
path: root/target/i386/tcg/seg_helper.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2021-09-11 18:54:13 +0200
committerRichard Henderson2021-09-14 21:00:20 +0200
commit30ca39244bccc93d90a9a763e7e3d115ba089c13 (patch)
treedfa17d2e771184663073c22d353ca19419de1ac5 /target/i386/tcg/seg_helper.c
parenttarget/i386: Restrict sysemu-only fpu_helper helpers (diff)
downloadqemu-30ca39244bccc93d90a9a763e7e3d115ba089c13.tar.gz
qemu-30ca39244bccc93d90a9a763e7e3d115ba089c13.tar.xz
qemu-30ca39244bccc93d90a9a763e7e3d115ba089c13.zip
target/i386: Simplify TARGET_X86_64 #ifdef'ry
Merge two TARGET_X86_64 consecutive blocks. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210911165434.531552-4-f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/i386/tcg/seg_helper.c')
-rw-r--r--target/i386/tcg/seg_helper.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/target/i386/tcg/seg_helper.c b/target/i386/tcg/seg_helper.c
index cef68b610a..56263e358d 100644
--- a/target/i386/tcg/seg_helper.c
+++ b/target/i386/tcg/seg_helper.c
@@ -929,9 +929,7 @@ static void do_interrupt64(CPUX86State *env, int intno, int is_int,
e2);
env->eip = offset;
}
-#endif
-#ifdef TARGET_X86_64
void helper_sysret(CPUX86State *env, int dflag)
{
int cpl, selector;
@@ -984,7 +982,7 @@ void helper_sysret(CPUX86State *env, int dflag)
DESC_W_MASK | DESC_A_MASK);
}
}
-#endif
+#endif /* TARGET_X86_64 */
/* real mode interrupt */
static void do_interrupt_real(CPUX86State *env, int intno, int is_int,