linux-mips
[Top] [All Lists]

Re: need help on unaligned loads,stores!

To: Thomas Horsten <thomas@horsten.com>
Subject: Re: need help on unaligned loads,stores!
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Mon, 13 Oct 2003 21:34:07 +0200 (MEST)
Cc: "Liu Hongming (Alan)" <alanliu@trident.com.cn>, Linux/MIPS Development <linux-mips@linux-mips.org>
In-reply-to: <200310131927.07171.thomas@horsten.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
On Mon, 13 Oct 2003, Thomas Horsten wrote:
> On Monday 13 October 2003 02:44, Liu Hongming (Alan) wrote:
> > I am porting linux for a cpu that doesnt support unaligned loads/stores
> > instructions.
> >
> > when using memcpy in arch/mips/memcpy.S,it will not work on these
> > instructions.
> >
> > Any one could help me to deal with this? Have you ever ported linux for
> > this kind cpu?
> >
> > And anyone could tell me which cpu doesnt support these instructions
> > either,and has
> >
> > been ported for linux?
> 
> Almost all MIPS CPU's are like this, and don't support unaligned accesses.

I guess Liu meant the (patented) instructions to do explicit unaligned
accesses.  Real MIPS CPUs do support these.

Gr{oetje,eeting}s,

                                                Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                                            -- Linus Torvalds


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