{"id":812650,"url":"http://patchwork.ozlabs.org/api/patches/812650/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20170911213328.9701-6-f4bug@amsat.org/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170911213328.9701-6-f4bug@amsat.org>","list_archive_url":null,"date":"2017-09-11T21:33:28","name":"[v2,5/5] tcg: restrict i386 regs definitions","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"e661c0e6e5e3b7329136697a12e3a64a2aea3990","submitter":{"id":70924,"url":"http://patchwork.ozlabs.org/api/people/70924/?format=json","name":"Philippe Mathieu-Daudé","email":"f4bug@amsat.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20170911213328.9701-6-f4bug@amsat.org/mbox/","series":[{"id":2585,"url":"http://patchwork.ozlabs.org/api/series/2585/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=2585","date":"2017-09-11T21:33:23","name":"move user-exec, tcg-runtime, atomic_template.h to accel/tcg/","version":2,"mbox":"http://patchwork.ozlabs.org/series/2585/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/812650/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/812650/checks/","tags":{},"related":[],"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"Wgxw8gxR\"; dkim-atps=neutral"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrhC06pPkz9s7M\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 07:39:08 +1000 (AEST)","from localhost ([::1]:60728 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1drWQ7-0005Ll-2G\n\tfor incoming@patchwork.ozlabs.org; Mon, 11 Sep 2017 17:39:07 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:44693)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1drWL4-00019N-Rl\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 17:33:55 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1drWL4-0006yg-2o\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 17:33:54 -0400","from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]:37739)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1drWL3-0006yN-Uj\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 17:33:54 -0400","by mail-qt0-x242.google.com with SMTP id u48so3451183qtc.4\n\tfor <qemu-devel@nongnu.org>; Mon, 11 Sep 2017 14:33:53 -0700 (PDT)","from yoga.offpageads.com ([181.93.89.178])\n\tby smtp.gmail.com with ESMTPSA id\n\tf4sm6914767qtg.35.2017.09.11.14.33.50\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 11 Sep 2017 14:33:52 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=tPNZ89uwe8W0JU73fD+zyl+7n2APZzFpSlSbx7OifTs=;\n\tb=Wgxw8gxRgRZf57I7+2J+mpbld+1iYi0YAVbuxweLcbAjYMnBPKvzGIjJiK0xcS7ekX\n\tp8K8heCzQl5Ht7QRIJiJNq2EGN4tV8f/+UDH3A8ibfmImazdg12HusCBO82wr567h93J\n\tojnAlzS1EWA1Q9csTb/fGsfUysdsapl8KR8P+tDERtKiAw7RMmigpVyBqREWU8CeWtNE\n\thXKNk2d23Sn/y2eg43Y/LkW83SXXXDt4/sgX7XxPZlSeEgAhNb4a1E90uDZ9v69UImjU\n\tJwnWxKo8b5SuvsURJDabYQcouS30qgMPGAwFTqICjODSbQl9GwQ7kMTj5nX+IqU2C9/0\n\t0JBg==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references:mime-version:content-transfer-encoding;\n\tbh=tPNZ89uwe8W0JU73fD+zyl+7n2APZzFpSlSbx7OifTs=;\n\tb=rpjnoBiooM8+9merC6KV+59EeZWqZ9V4PHnGtR9HvQ549zbal1aKMkiZ6QDYAGpRNS\n\trxgcAr4vsAoFTucaiLLPCn3Y8BhBZ3c4qFyPy71FWFzzE2bOuN9PsppQ26FeiQDqS6Nu\n\tAjBHHOMKoeA93uMHQy3KbLXIczvTI6brk1f2m9I7IeHrb4o4tsg0BT03ZS5bHiZ5QTb8\n\tKV5ERQyUKWRcLVEgBZqzmNvjgjFLge1gkMvXPdoiDWXEqVrIGniWFiODYVgJqFTGOKU6\n\ti5teqgkgcKUdomnAcokiWkfCjmj4D+SJjPnwA+Z71wAwZmnNcLQfomyjcsPWRHoF0KqS\n\txpJg==","X-Gm-Message-State":"AHPjjUisZjndsM1aDRJc3z/OksLGv+uFY+CMG6dnCMvTIjX0X2bxN8iw\n\t6leuqI4v0GYXkg==","X-Google-Smtp-Source":"AOwi7QA0TvQRGnNsiS5xk3IPo8I7CuQnW6xlR06euFS/sUGCN+U8Uo87zkZIsnc0lmhPqBDVmZPpFw==","X-Received":"by 10.200.40.27 with SMTP id 27mr18565115qtq.148.1505165633445; \n\tMon, 11 Sep 2017 14:33:53 -0700 (PDT)","From":"=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>","To":"Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <rth@twiddle.net>,\n\tPeter Crosthwaite <crosthwaite.peter@gmail.com>,\n\tThomas Huth <thuth@redhat.com>","Date":"Mon, 11 Sep 2017 18:33:28 -0300","Message-Id":"<20170911213328.9701-6-f4bug@amsat.org>","X-Mailer":"git-send-email 2.14.1","In-Reply-To":"<20170911213328.9701-1-f4bug@amsat.org>","References":"<20170911213328.9701-1-f4bug@amsat.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","X-detected-operating-system":"by eggs.gnu.org: Genre and OS details not\n\trecognized.","X-Received-From":"2607:f8b0:400d:c0d::242","Subject":"[Qemu-devel] [PATCH v2 5/5] tcg: restrict i386 regs definitions","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>,\n\tqemu-devel@nongnu.org","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"},"content":"Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>\n---\ncleaning while here :)\n\n accel/tcg/user-exec.c | 18 +++++++++---------\n 1 file changed, 9 insertions(+), 9 deletions(-)","diff":"diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c\nindex 2a975eaf69..484a3f5f8f 100644\n--- a/accel/tcg/user-exec.c\n+++ b/accel/tcg/user-exec.c\n@@ -25,15 +25,6 @@\n #include \"exec/cpu_ldst.h\"\n #include \"translate-all.h\"\n \n-#undef EAX\n-#undef ECX\n-#undef EDX\n-#undef EBX\n-#undef ESP\n-#undef EBP\n-#undef ESI\n-#undef EDI\n-#undef EIP\n #ifdef __linux__\n #include <sys/ucontext.h>\n #endif\n@@ -131,6 +122,15 @@ static inline int handle_cpu_signal(uintptr_t pc, unsigned long address,\n }\n \n #if defined(__i386__)\n+#undef EAX\n+#undef ECX\n+#undef EDX\n+#undef EBX\n+#undef ESP\n+#undef EBP\n+#undef ESI\n+#undef EDI\n+#undef EIP\n \n #if defined(__NetBSD__)\n #include <ucontext.h>\n","prefixes":["v2","5/5"]}