Re: Re: Architectures with strict alignment?

2008-01-05 Thread Bruce Cran
Marco van de Voort wrote: On Sat, Dec 08, 2007 at 03:43:30AM +0100, Ivan Voras wrote: Which of the architectures FreeBSD supports (if any) have strict memory alignment requirements? (in the sense that accessing a 32-bit integer not aligned on a 32-bit address results in a hardware trap/excep

Re: Architectures with strict alignment?

2008-01-04 Thread Marco van de Voort
On Sat, Dec 08, 2007 at 03:43:30AM +0100, Ivan Voras wrote: > Which of the architectures FreeBSD supports (if any) have strict memory > alignment requirements? (in the sense that accessing a 32-bit integer > not aligned on a 32-bit address results in a hardware trap/exception). I do know that old

Re: Architectures with strict alignment?

2007-12-31 Thread Erik Trulsson
On Mon, Dec 31, 2007 at 08:30:35PM +0800, Erich Dollansky wrote: > Hi, > > Kostik Belousov wrote: >> On Mon, Dec 31, 2007 at 05:38:43PM +0800, Erich Dollansky wrote: >>> Kostik Belousov wrote: On Sat, Dec 29, 2007 at 01:12:04PM +0200, Kostik Belousov wrote: > On Sat, Dec 29, 2007 at 12:14

Re: Architectures with strict alignment?

2007-12-31 Thread Erich Dollansky
Hi, Kostik Belousov wrote: On Mon, Dec 31, 2007 at 05:38:43PM +0800, Erich Dollansky wrote: Kostik Belousov wrote: On Sat, Dec 29, 2007 at 01:12:04PM +0200, Kostik Belousov wrote: On Sat, Dec 29, 2007 at 12:14:11AM -0800, Kip Macy wrote: I.e., it seems that gcc does not feel too guilty gener

Re: Architectures with strict alignment?

2007-12-31 Thread Kostik Belousov
On Mon, Dec 31, 2007 at 05:38:43PM +0800, Erich Dollansky wrote: > Hi, > > Kostik Belousov wrote: > >On Sat, Dec 29, 2007 at 01:12:04PM +0200, Kostik Belousov wrote: > >>On Sat, Dec 29, 2007 at 12:14:11AM -0800, Kip Macy wrote: > > > >I.e., it seems that gcc does not feel too guilty generating una

Re: Architectures with strict alignment?

2007-12-31 Thread Erich Dollansky
Hi, Kostik Belousov wrote: On Sat, Dec 29, 2007 at 01:12:04PM +0200, Kostik Belousov wrote: On Sat, Dec 29, 2007 at 12:14:11AM -0800, Kip Macy wrote: I.e., it seems that gcc does not feel too guilty generating unaligned half-word writes on i386. :( this should not be a problem inside a cach

Re: Architectures with strict alignment?

2007-12-31 Thread Bernd Walter
On Sun, Dec 30, 2007 at 11:18:08PM -0500, Mike Meyer wrote: > On Sun, 30 Dec 2007 20:37:18 +0100 Bernd Walter <[EMAIL PROTECTED]> wrote: > > On Sun, Dec 30, 2007 at 01:55:06PM -0500, Mike Meyer wrote: > > > Ok, I'm a bit confused. Since you're talking about moving code from > > > the x86 to the alp

Re: Architectures with strict alignment?

2007-12-30 Thread Mike Meyer
On Sun, 30 Dec 2007 20:37:18 +0100 Bernd Walter <[EMAIL PROTECTED]> wrote: > On Sun, Dec 30, 2007 at 01:55:06PM -0500, Mike Meyer wrote: > > On Sun, 30 Dec 2007 10:34:33 +0100 Bernd Walter <[EMAIL PROTECTED]> wrote: > > > On Sat, Dec 29, 2007 at 11:37:27PM +0100, Dag-Erling Smørgrav wrote: > > > >

Re: Architectures with strict alignment?

2007-12-30 Thread Bernd Walter
On Sun, Dec 30, 2007 at 01:55:06PM -0500, Mike Meyer wrote: > On Sun, 30 Dec 2007 10:34:33 +0100 Bernd Walter <[EMAIL PROTECTED]> wrote: > > On Sat, Dec 29, 2007 at 11:37:27PM +0100, Dag-Erling Smørgrav wrote: > > > Wilko Bulte <[EMAIL PROTECTED]> writes: > > > > In the past the alpha port had it t

Re: Architectures with strict alignment?

2007-12-30 Thread Mike Meyer
On Sun, 30 Dec 2007 10:34:33 +0100 Bernd Walter <[EMAIL PROTECTED]> wrote: > On Sat, Dec 29, 2007 at 11:37:27PM +0100, Dag-Erling Smørgrav wrote: > > Wilko Bulte <[EMAIL PROTECTED]> writes: > > > In the past the alpha port had it too. > > > > No, it was optional and defaulted to off. > > It was n

Re: Architectures with strict alignment?

2007-12-30 Thread Kostik Belousov
On Sat, Dec 29, 2007 at 01:12:04PM +0200, Kostik Belousov wrote: > On Sat, Dec 29, 2007 at 12:14:11AM -0800, Kip Macy wrote: > > Isn't it everything except x86? > > > > -Kip > x86 has the AC bit in the eflags. The AM bit in cr0 is enabled by the > kernel, and AC could be switched on by LD_PRELOADe

Re: Architectures with strict alignment?

2007-12-30 Thread Bernd Walter
On Sat, Dec 29, 2007 at 11:37:27PM +0100, Dag-Erling Smørgrav wrote: > Wilko Bulte <[EMAIL PROTECTED]> writes: > > In the past the alpha port had it too. > > No, it was optional and defaulted to off. It was never optional, since no alpha CPU can do missaligned access Alphas can fix missaligned ac

Re: Architectures with strict alignment?

2007-12-30 Thread Peter Jeremy
On Sat, Dec 29, 2007 at 02:06:27PM -0800, Bakul Shah wrote: >> (though the AMD29K could apparently generate >> dummy bus cycles to limit the number of bit transitions on any cycle >> to reduce the I/O load). > >Are you sure it was the amd29k? I don't recall anything like >that

Re: Architectures with strict alignment?

2007-12-29 Thread perryh
Ivan Voras <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > > The degree to which a PowerPC imposes a strict alignment > > requirement depends on both the particular processor model > > and the operation being performed. > > > > For ordinary integer arithmetic and logical operations, new

Re: Architectures with strict alignment?

2007-12-29 Thread Ivan Voras
[EMAIL PROTECTED] wrote: > The degree to which a PowerPC imposes a strict alignment requirement > depends on both the particular processor model and the operation > being performed. > > For ordinary integer arithmetic and logical operations, newer > PPC processors tend to be more tolerant (althou

Re: Architectures with strict alignment?

2007-12-29 Thread perryh
"M. Warner Losh" <[EMAIL PROTECTED]> wrote: > In message: <[EMAIL PROTECTED]> > Ivan Voras <[EMAIL PROTECTED]> writes: > : Which of the architectures FreeBSD supports (if any) have strict > : memory alignment requirements? (in the sense that accessing a > : 32-bit integer not aligned o

Re: Architectures with strict alignment?

2007-12-29 Thread Dag-Erling Smørgrav
Wilko Bulte <[EMAIL PROTECTED]> writes: > In the past the alpha port had it too. No, it was optional and defaulted to off. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/list

Re: Architectures with strict alignment?

2007-12-29 Thread Bakul Shah
> (though the AMD29K could apparently generate > dummy bus cycles to limit the number of bit transitions on any cycle > to reduce the I/O load). Are you sure it was the amd29k? I don't recall anything like that (and am too lazy to dig out its datasheets!). It too requiredd st

Re: Architectures with strict alignment?

2007-12-29 Thread Peter Jeremy
On Sat, Dec 29, 2007 at 06:03:15PM +0800, Erich Dollansky wrote: >All RISC based designs need the alignment so that the CPU can fetch a CPU >word in one go. CISC based designs do not have this limitiation. It's more that the additional logic required to split a single memory operation (load/store

Re: Architectures with strict alignment?

2007-12-29 Thread Wilko Bulte
Quoting M. Warner Losh, who wrote on Sat, Dec 29, 2007 at 12:22:21PM -0700 .. > In message: <[EMAIL PROTECTED]> > Ivan Voras <[EMAIL PROTECTED]> writes: > : Which of the architectures FreeBSD supports (if any) have strict memory > : alignment requirements? (in the sense that accessing a

Re: Architectures with strict alignment?

2007-12-29 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Ivan Voras <[EMAIL PROTECTED]> writes: : Which of the architectures FreeBSD supports (if any) have strict memory : alignment requirements? (in the sense that accessing a 32-bit integer : not aligned on a 32-bit address results in a hardware trap/exception

Re: Architectures with strict alignment?

2007-12-29 Thread Achim Patzner
Am 29.12.2007 um 13:01 schrieb Joerg Sonnenberger: On Sat, Dec 29, 2007 at 06:03:15PM +0800, Erich Dollansky wrote: I also do not know of any other CISC based design which made it to mainstream. VAX? There is a working FreeBSD/VAX? (Whatever - just as I don't understand any sane being run

Re: Architectures with strict alignment?

2007-12-29 Thread Mike Meyer
On Sat, 29 Dec 2007 13:41:21 +0100 Erik Trulsson <[EMAIL PROTECTED]> wrote: > On Sat, Dec 29, 2007 at 06:03:15PM +0800, Erich Dollansky wrote: > > All RISC based designs need the alignment so that the CPU can fetch a CPU > > word in one go. CISC based designs do not have this limitiation. > > > >

Re: Architectures with strict alignment?

2007-12-29 Thread Erik Trulsson
On Sat, Dec 29, 2007 at 06:03:15PM +0800, Erich Dollansky wrote: > Hi, > > Kip Macy wrote: >> Isn't it everything except x86? > > not really. > > All RISC based designs need the alignment so that the CPU can fetch a CPU > word in one go. CISC based designs do not have this limitiation. > > I a

Re: Architectures with strict alignment?

2007-12-29 Thread Joerg Sonnenberger
On Sat, Dec 29, 2007 at 06:03:15PM +0800, Erich Dollansky wrote: > I also do not know of any other CISC based design which made it to > mainstream. VAX? Joerg ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebs

Re: Architectures with strict alignment?

2007-12-29 Thread Kostik Belousov
On Sat, Dec 29, 2007 at 12:14:11AM -0800, Kip Macy wrote: > Isn't it everything except x86? > > -Kip x86 has the AC bit in the eflags. The AM bit in cr0 is enabled by the kernel, and AC could be switched on by LD_PRELOADed shared object. Last time I checked, our libc caused unaligned access in th

Re: Architectures with strict alignment?

2007-12-29 Thread Erich Dollansky
Hi, Kip Macy wrote: Isn't it everything except x86? not really. All RISC based designs need the alignment so that the CPU can fetch a CPU word in one go. CISC based designs do not have this limitiation. I also do not know of any other CISC based design which made it to mainstream. Erich

Re: Architectures with strict alignment?

2007-12-29 Thread Marcel Moolenaar
On Dec 7, 2007, at 6:43 PM, Ivan Voras wrote: Hi, Which of the architectures FreeBSD supports (if any) have strict memory alignment requirements? (in the sense that accessing a 32-bit integer not aligned on a 32-bit address results in a hardware trap/exception). ia64 and sparc64 at least.

Re: Architectures with strict alignment?

2007-12-29 Thread Kip Macy
Isn't it everything except x86? -Kip On Dec 29, 2007 12:11 AM, Erich Dollansky <[EMAIL PROTECTED]> wrote: > Hi, > > > Ivan Voras wrote: > > Hi, > > > > Which of the architectures FreeBSD supports (if any) have strict memory > > alignment requirements? (in the sense that accessing a 32-bit integer

Re: Architectures with strict alignment?

2007-12-29 Thread Erich Dollansky
Hi, Ivan Voras wrote: Hi, Which of the architectures FreeBSD supports (if any) have strict memory alignment requirements? (in the sense that accessing a 32-bit integer not aligned on a 32-bit address results in a hardware trap/exception). isn't this the case with SPARC and Itanium? I know, t

Re: Architectures with strict alignment?

2007-12-29 Thread Tim Kientzle
Ivan Voras wrote: Which of the architectures FreeBSD supports (if any) have strict memory alignment requirements? (in the sense that accessing a 32-bit integer not aligned on a 32-bit address results in a hardware trap/exception). I believe ARM has such requirements (at least, GCC for Arm does

Architectures with strict alignment?

2007-12-28 Thread Ivan Voras
Hi, Which of the architectures FreeBSD supports (if any) have strict memory alignment requirements? (in the sense that accessing a 32-bit integer not aligned on a 32-bit address results in a hardware trap/exception). signature.asc Description: OpenPGP digital signature