From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0CIx-0007cW-GX for qemu-devel@nongnu.org; Fri, 19 Jul 2013 11:09:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V0CIt-0004Sy-3o for qemu-devel@nongnu.org; Fri, 19 Jul 2013 11:09:11 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:39464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0CIs-0004SR-VG for qemu-devel@nongnu.org; Fri, 19 Jul 2013 11:09:07 -0400 Message-ID: <51E9569C.5050400@codesourcery.com> Date: Fri, 19 Jul 2013 16:09:16 +0100 From: Kwok Cheung Yeung MIME-Version: 1.0 References: <1374245233-14732-1-git-send-email-kcy@codesourcery.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] linux-user: Handle microMIPS encoding when processing trap exceptions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: riku.voipio@iki.fi, qemu-devel@nongnu.org, aurelien@aurel32.net On 19/07/2013 3:52 PM, Peter Maydell wrote: > On 19 July 2013 15:47, Kwok Cheung Yeung wrote: >> Decode trap instructions during the handling of an EXCP_TRAP according to >> the current ISA mode. >> >> Signed-off-by: Kwok Cheung Yeung >> --- >> linux-user/main.c | 20 ++++++++++++++++++-- >> 1 file changed, 18 insertions(+), 2 deletions(-) >> >> v2: Read microMIPS instructions sequentially as 16-bit values to avoid >> endianess issues. Add braces to if statement to conform to formatting >> standards. > > This code looks OK but last time round I asked about > EXCP_BREAK -- why doesn't that also need to change? > This patch was intended to fix the handling of floating-point exceptions while running the GCC unit tests (gcc.c-torture/execute/20101011-1.c) on microMIPS, which only requires EXCP_TRAP to work properly. I'll post a version with EXCP_BREAK fixed shortly. Thanks Kwok