[Top] [All Lists]

Re: [PATCH] MIPS: Add emulation for fpureg-mem unaligned access

Subject: Re: [PATCH] MIPS: Add emulation for fpureg-mem unaligned access
From: Lluís Batlle i Rossell <>
Date: Wed, 20 Jun 2012 21:05:45 +0200
In-reply-to: <>
List-archive: <>
List-help: <>
List-id: linux-mips <>
List-owner: <>
List-post: <>
List-software: Ecartis version 1.0.0
List-subscribe: <>
List-unsubscribe: <>
References: <> <> <> <>
User-agent: Mutt/1.5.20 (2009-06-14)
> In reply to Thomas Bogendoerfer - 2012-06-17 09:06:43
> On Sat, Jun 16, 2012 at 02:58:47PM +0200, Lluís Batlle i Rossell wrote:
> > Well, I think I take my words back. Handling the ldc1/sdc1 cases in MIPS32 
> > is
> > tricker than I thought first, because I can't use ldl/ldr or sdl/sdr there.
> > Given my ability with mips assembly, I leave the patch as is.
> > 
> > In 'patchwork' I had set the patch first to superseeded, but then I set it
> > back
> > to New.
> why is there a reason for this ? Unaligned FPU access shouts to me simply
> broken code, go fix that. But maybe I'm wrong ?
> Thomas.

Hello Thomas,

sorry to answer this way; I was not subscribed to the list, and I noticed your
answer only today thanks to patchwork.

Right, the patch allows broken code to run further, instead of fail straight.
The crash can be still achieved disabling the emulation of unaligned accesses
completely, through debugfs, for example.

As Jonas reported, I think that maybe I should rework the patch for it to emit
sigbus instead of sigill on ldc1,ldc1 for mips32. Do I understand it right?


<Prev in Thread] Current Thread [Next in Thread>