From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zjl0T-0006Ed-SR for qemu-devel@nongnu.org; Wed, 07 Oct 2015 05:27:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zjl0P-0008Rq-Px for qemu-devel@nongnu.org; Wed, 07 Oct 2015 05:27:29 -0400 Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]:33520) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zjl0P-0008RK-KE for qemu-devel@nongnu.org; Wed, 07 Oct 2015 05:27:25 -0400 Received: by pacex6 with SMTP id ex6so16366553pac.0 for ; Wed, 07 Oct 2015 02:27:25 -0700 (PDT) Sender: Richard Henderson References: From: Richard Henderson Message-ID: <5614E574.20200@twiddle.net> Date: Wed, 7 Oct 2015 20:27:16 +1100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v6] target-tilegx: Support iret instruction and related special registers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chen Gang , Chris Metcalf , Peter Maydell Cc: qemu-devel On 10/07/2015 10:21 AM, Chen Gang wrote: >>>From fa0950e403bbb98989117f632215ae0e698457d7 Mon Sep 17 00:00:00 2001 > From: Chen Gang > Date: Sun, 4 Oct 2015 17:41:14 +0800 > Subject: [PATCH v6] target-tilegx: Support iret instruction and related special registers > > EX_CONTEXT_0_0 is used for jumping address, and EX_CONTEXT_0_1 is for > INTERRUPT_CRITICAL_SECTION, which should only be 0 or 1 in user mode, or > it will cause target SIGILL (and the patch doesn't support system mode). > > Signed-off-by: Chen Gang > --- > target-tilegx/cpu.h | 2 ++ > target-tilegx/helper.c | 22 ++++++++++++++++++++++ > target-tilegx/helper.h | 1 + > target-tilegx/translate.c | 14 +++++++++++++- > 4 files changed, 38 insertions(+), 1 deletion(-) Applied. r~