Hi Anton, On Wed, 31 Jul 2013 15:05:21 +1000 Anton Blanchard <[email protected]> wrote: > > +++ b/arch/powerpc/kernel/align.c > @@ -764,6 +764,16 @@ int fix_alignment(struct pt_regs *regs) > nb = aligninfo[instr].len; > flags = aligninfo[instr].flags; > > + /* ldbrx/stdbrx overlap lfs/stfs in the DSISR unfortunately */ > + if (IS_XFORM(instruction) && ((instruction >> 1) & 0x3ff) == 532) {
We have get_xop() in asm/disassemble.h (which is unfortunately not
included by this file) ...
> + nb = 8;
> + flags = LD+SW;
> + } else if (IS_XFORM(instruction) &&
> + ((instruction >> 1) & 0x3ff) == 660) {
ditto
/me points at a bike shed :-)
--
Cheers,
Stephen Rothwell [email protected]
pgpgBWYw3gsQR.pgp
Description: PGP signature
_______________________________________________ Linuxppc-dev mailing list [email protected] https://lists.ozlabs.org/listinfo/linuxppc-dev
