Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: axp-list@redhat.com
Subject: Re: How do I find/fix unaligned accesses?
Date: Mon, 07 Dec 1998 20:07:39 -0500	[thread overview]
Message-ID: <366C7BDA.3C48407C@voicenet.com> (raw)
In-Reply-To: yv4r9ubzfcy.fsf@tuxedo.applix.com

actually its the instruction - is it a quad instruction, then data must be
aligned on 8 byte boundaries. floating point doubles require alignment at 8
byte boundaries.

BTW, in general unaligned traps are fixed-up in the kern, although at a price.
although i'm not too sure about floating point fixups.

Eric Ding wrote:

> Hi guys,
>
> thanks for the tips... ok, so now I'm looking at
>
>         unaligned trap at 0000015556b9d360: 0000000120d9740c 27 1
>
> and the variable being accessed is a double, which means it must be aligned
> on 4 byte boundaries, right?  But it's correct, then, isn't it?  That is,
> 0x0000000120d9740c is divisible by 4, so why is there still an error?
>
> Thanks,
> Eric
> --
> Senior Software Engineer / ericding@applix.com               <><
> Applix, Inc. / 112 Turnpike Road / Westboro MA 01581-2842
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com




  parent reply	other threads:[~1998-12-08  1:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-04 18:25 How do I find/fix unaligned accesses? Eric Ding
1998-12-04 21:16 ` Oscar Levi
1998-12-04 21:17 ` nbecker
1998-12-04 21:18 ` Harvey J. Stein
1998-12-04 21:35 ` Rich Payne
1998-12-05  2:29   ` Tom Linden
1998-12-05 16:37     ` Oscar Levi
1998-12-07 23:45     ` Eric Ding
1998-12-08  0:44       ` Richard Hadsell
1998-12-08  1:07       ` Uncle George [this message]
1998-12-08  3:58         ` Eric Ding
1998-12-08  7:16           ` Wes Bauske
1998-12-08 11:14           ` Uncle George
1998-12-08 13:04             ` nbecker
  -- strict thread matches above, loose matches on Subject: below --
1998-12-08 21:13 Christian Groessler
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox