From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:52722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R85tj-0003zA-RY for qemu-devel@nongnu.org; Mon, 26 Sep 2011 03:46:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R85ti-0002Mj-N4 for qemu-devel@nongnu.org; Mon, 26 Sep 2011 03:46:43 -0400 Received: from thoth.sbs.de ([192.35.17.2]:34606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R85ti-0002MS-Bj for qemu-devel@nongnu.org; Mon, 26 Sep 2011 03:46:42 -0400 Message-ID: <4E802DDD.8090100@siemens.com> Date: Mon, 26 Sep 2011 09:46:37 +0200 From: Jan Kiszka MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] tcg: Remove stack protection from helper functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Blue Swirl , Peter Maydell , qemu-devel This increases the overhead of frequently executed helpers. Signed-off-by: Jan Kiszka --- Maybe this should be applied to more hot-path functions, but I haven't done any thorough analysis yet. Makefile.target | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile.target b/Makefile.target index 88d2f1f..1cc758d 100644 --- a/Makefile.target +++ b/Makefile.target @@ -91,7 +91,7 @@ tcg/tcg.o: cpu.h # HELPER_CFLAGS is used for all the code compiled with static register # variables -op_helper.o user-exec.o: QEMU_CFLAGS += $(HELPER_CFLAGS) +op_helper.o user-exec.o: QEMU_CFLAGS := $(subst -fstack-protector-all,,$(QEMU_CFLAGS)) $(HELPER_CFLAGS) # Note: this is a workaround. The real fix is to avoid compiling # cpu_signal_handler() in user-exec.c.