* [PATCH 1/2] sh: Fix unaligned memory access for branches without delay
@ 2011-08-22 15:56 Phil Edworthy
2011-08-29 7:24 ` [PATCH 1/2] sh: Fix unaligned memory access for branches without delay slots Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Phil Edworthy @ 2011-08-22 15:56 UTC (permalink / raw)
To: linux-sh
This patch just clears the return code for those cases where an
unaligned memory access occurs on branch instructions without a
delay slot.
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
---
arch/sh/kernel/traps_32.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/sh/kernel/traps_32.c b/arch/sh/kernel/traps_32.c
index d9006f8..61fa4a5 100644
--- a/arch/sh/kernel/traps_32.c
+++ b/arch/sh/kernel/traps_32.c
@@ -466,6 +466,7 @@ int handle_unaligned_access(insn_size_t instruction, struct pt_regs *regs,
case 0x0500: /* mov.w @(disp,Rm),R0 */
goto simple;
case 0x0B00: /* bf lab - no delayslot*/
+ ret = 0;
break;
case 0x0F00: /* bf/s lab */
ret = handle_delayslot(regs, instruction, ma);
@@ -479,6 +480,7 @@ int handle_unaligned_access(insn_size_t instruction, struct pt_regs *regs,
}
break;
case 0x0900: /* bt lab - no delayslot */
+ ret = 0;
break;
case 0x0D00: /* bt/s lab */
ret = handle_delayslot(regs, instruction, ma);
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/2] sh: Fix unaligned memory access for branches without delay slots
2011-08-22 15:56 [PATCH 1/2] sh: Fix unaligned memory access for branches without delay Phil Edworthy
@ 2011-08-29 7:24 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2011-08-29 7:24 UTC (permalink / raw)
To: linux-sh
On Mon, Aug 22, 2011 at 04:56:08PM +0100, Phil Edworthy wrote:
> This patch just clears the return code for those cases where an
> unaligned memory access occurs on branch instructions without a
> delay slot.
>
> Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
On Wed, Aug 24, 2011 at 11:43:59AM +0100, Phil Edworthy wrote:
> This adds unaligned memory access support for the following instructions:
> mov.w @(disp,PC),Rn
> mov.l @(disp,PC),Rn
>
> These instructions are often used on SH2A toolchains.
>
> Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
> ---
> v3:
> Fixed the PC relative address calculation
> v2:
> Fixed the mov.l case for big endian
> Fixed typo in commit msg
>
> arch/sh/kernel/traps_32.c | 35 +++++++++++++++++++++++++++++++++++
> 1 files changed, 35 insertions(+), 0 deletions(-)
>
Both applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-29 7:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-22 15:56 [PATCH 1/2] sh: Fix unaligned memory access for branches without delay Phil Edworthy
2011-08-29 7:24 ` [PATCH 1/2] sh: Fix unaligned memory access for branches without delay slots Paul Mundt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.