[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 5/5] tcg: restrict i386 regs definitions
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-devel] [PATCH v2 5/5] tcg: restrict i386 regs definitions |
Date: |
Mon, 11 Sep 2017 18:33:28 -0300 |
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
cleaning while here :)
accel/tcg/user-exec.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c
index 2a975eaf69..484a3f5f8f 100644
--- a/accel/tcg/user-exec.c
+++ b/accel/tcg/user-exec.c
@@ -25,15 +25,6 @@
#include "exec/cpu_ldst.h"
#include "translate-all.h"
-#undef EAX
-#undef ECX
-#undef EDX
-#undef EBX
-#undef ESP
-#undef EBP
-#undef ESI
-#undef EDI
-#undef EIP
#ifdef __linux__
#include <sys/ucontext.h>
#endif
@@ -131,6 +122,15 @@ static inline int handle_cpu_signal(uintptr_t pc, unsigned
long address,
}
#if defined(__i386__)
+#undef EAX
+#undef ECX
+#undef EDX
+#undef EBX
+#undef ESP
+#undef EBP
+#undef ESI
+#undef EDI
+#undef EIP
#if defined(__NetBSD__)
#include <ucontext.h>
--
2.14.1