From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:37088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzPeP-0000XK-9s for qemu-devel@nongnu.org; Thu, 28 Feb 2019 12:39:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzPeO-0006MC-KF for qemu-devel@nongnu.org; Thu, 28 Feb 2019 12:39:17 -0500 Sender: Richard Henderson References: <20190227111411.22890-1-david@redhat.com> <20190227111411.22890-3-david@redhat.com> <18326ade-4b6b-04f9-f34b-9bd7ff39bd2c@redhat.com> From: Richard Henderson Message-ID: Date: Thu, 28 Feb 2019 09:39:08 -0800 MIME-Version: 1.0 In-Reply-To: <18326ade-4b6b-04f9-f34b-9bd7ff39bd2c@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH RFC 2/2] tests/tcg: target/s390: Add test for VECTOR LOAD GR FROM VR ELEMENT List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Hildenbrand , qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, Thomas Huth , Cornelia Huck , =?UTF-8?Q?Alex_Benn=c3=a9e?= , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= On 2/27/19 11:14 PM, David Hildenbrand wrote: > I guess signal + sigsetjmp/siglongjmp is the one with the smalles LOC? > Will give it a try. I suppose it depends on how you write it. struct sigaction sa = { .sa_mask = SA_RESETHAND | SA_NODEFER, .sa_handler = sig_sigill, }; check("SIGILL not registered", sigaction(SIGILL, &sa, NULL) == 0); is 5 lines to the 6 you currently use for registering and unregistering the signal handler. ;-) r~