Re: powerpc64: ldbrx/stdbrx for endian.h?

2020-06-08 Thread Theo de Raadt
Miod Vallat wrote: > > There is an interest in supporting PowerPC 970 ("G5"). That would > > allow people to use more than 2G of RAM on the last generations of > > Apple PowerMac machines. Otherwise I don't think we are interested in > > anything before POWER8. > > Years ago, a decision was

Re: powerpc64: ldbrx/stdbrx for endian.h?

2020-06-08 Thread Miod Vallat
> There is an interest in supporting PowerPC 970 ("G5"). That would > allow people to use more than 2G of RAM on the last generations of > Apple PowerMac machines. Otherwise I don't think we are interested in > anything before POWER8. Years ago, a decision was made to ditch 64-bit PA-RISC

Re: powerpc64: ldbrx/stdbrx for endian.h?

2020-06-08 Thread Christian Weisgerber
On 2020-06-08, Christian Weisgerber wrote: >> Did they also happen to add opcodes for doing swaps in registers? > > No. > (I haven't looked at the vector instructions yet.) PS: There's a vector permutate instruction, but AFAICT there is no way to move data between general purpose and vector

Re: powerpc64: ldbrx/stdbrx for endian.h?

2020-06-08 Thread Mark Kettenis
> Date: Mon, 8 Jun 2020 13:28:55 +0200 > From: Christian Weisgerber > > powerpc has byte-swapping 16 and 32-bit load/stores and we use those > in . > > Starting with POWER7 (Power ISA v.2.06), there are also corresponding > 64-bit instructions. Do we want to use those on powerpc64? Or do > we

Re: powerpc64: ldbrx/stdbrx for endian.h?

2020-06-08 Thread Christian Weisgerber
David Gwynne: > > Starting with POWER7 (Power ISA v.2.06), there are also corresponding > > 64-bit instructions. Do we want to use those on powerpc64? Or do > > we want to keep compatibility with older processors? > > I'm ok with using the instructions. I can't think of what benefit compat in

Re: powerpc64: ldbrx/stdbrx for endian.h?

2020-06-08 Thread David Gwynne
> On 8 Jun 2020, at 9:28 pm, Christian Weisgerber wrote: > > powerpc has byte-swapping 16 and 32-bit load/stores and we use those > in . > > Starting with POWER7 (Power ISA v.2.06), there are also corresponding > 64-bit instructions. Do we want to use those on powerpc64? Or do > we want to

powerpc64: ldbrx/stdbrx for endian.h?

2020-06-08 Thread Christian Weisgerber
powerpc has byte-swapping 16 and 32-bit load/stores and we use those in . Starting with POWER7 (Power ISA v.2.06), there are also corresponding 64-bit instructions. Do we want to use those on powerpc64? Or do we want to keep compatibility with older processors? Index: