Questions tagged [powerpc]

Questions related to the PowerPC family of RISC processors.

PowerPC is a RISC architecture created jointly by Apple, IBM, and Freescale (formerly Motorola). The PowerPC standard is now handled by Power.org. It includes both 32 and 64 bit versions of the processor.

Helpful Links:

See Also:

705 questions
6
votes
1 answer

ELDK gcc linker error in ld.so.1

I have ELDK-3.1 installed in a Ubuntu box working perfectly. In another machine, running 64 bits OpenSuse 12.1, I cloned the ELDK installation and, for some time it worked very well. Now when I try to configure my projects I see: configure: error: C…
j4x
  • 3,595
  • 3
  • 33
  • 64
6
votes
1 answer

Error: operand out of range (64 is not between 0 and 31)

I'm suffering GCC inline assembly on PowerPC. The program compiles fine with -g2 -O3, but fails to compile with -g3 -O0. The problem is, I need to observe it under the debugger so I need symbols without optimizations. Here is the program: $ cat…
jww
  • 97,681
  • 90
  • 411
  • 885
6
votes
0 answers

Questioning validity of PowerPC barriers in GCC-generated atomics

GCC implements __sync_val_compare_and_swap on PowerPC[64] as: sync 1: lwarx 9,0,3 cmpw 0,9,4 bne 0,2f stwcx. 5,0,3 bne 0,1b 2: isync GCC documents for the __sync_* builtins: In most cases, these builtins are considered a full…
R.. GitHub STOP HELPING ICE
  • 208,859
  • 35
  • 376
  • 711
6
votes
1 answer

Does `isync` prevent Store-Load reordering on CPU PowerPC?

As known, PowerPC has weak memory model, that permit any speculative reordering: Store-Store, Load-Store, Store-Load, Load-Load. There are at least 3 Fences: hwsync or sync - full memory barrier, prevents any reordering lwsync - memory barriers…
Alex
  • 12,578
  • 15
  • 99
  • 195
6
votes
1 answer

What is the instruction tlbiel and what does it do?

I've recently come across an instruction called tlbiel and I'm curious as to what it means and what purpose it serves. After doing some intense Google searching, I saw one IBM document that lead me to believe it's hypervisor-related. The current…
user6501446
6
votes
2 answers

Understanding PowerPC rlwinm instruction

So I finally convinced myself to try and learn/use PowerPC (PPC). Everything is going well and most information was found online. However, when looking at some examples I came across this: rlwinm r3, r3, 0,1,1 How would I do this in C? I tried…
user3829771
  • 61
  • 1
  • 2
6
votes
2 answers

OpenMP SIMD on Power8

I'm wondering whether there is any compiler (gcc, xlc, etc.) on Power8 that supports OpenMP SIMD constructs on Power8? I tried with XL (13.1) but I couldn't compile successfully. Probably it doesn't support simd construct yet. I could compile with…
grypp
  • 405
  • 2
  • 15
6
votes
2 answers

How do I embed a device tree blob, (dtb), in a linux kernel?

There should be a standard, board and architecture independent way to do this just like there is with initfamfs, no? I'm using powerpc and linux-3.10, if it matters. If there are better facilities later, I'd be interested to hear about them. And if…
K Richard Pixley
  • 617
  • 1
  • 6
  • 10
6
votes
2 answers

Generate unaligned memory access exception in PowerPC

I have a huge source code that works on PowerPC. I need to port it to ARM. But, ARM generates h/w exception on unaligned memory accesses. So, I want to find all the possible instances where the unaligned memory access exception could occur. I've…
linuxfreak
  • 2,068
  • 3
  • 20
  • 29
6
votes
1 answer

What is basic idea behind emulation of the instruction set?

I am new to virtualization and trying to understand basic idea behind the instuction set emulation. I am following the e500 core instruction set emulation . http://www.linux-kvm.org/page/E500_virtual_CPU_specification This particular…
Amit Singh Tomar
  • 8,380
  • 27
  • 120
  • 199
6
votes
3 answers

Numeric code porting powerpc to intel gives different results using float

My essential problem is how to make arithmetic with floats on x86 behave like a PowerPC, going from Classic MacOS (CodeWarrior) to Windows (VS 2008). The code in question, of which there is a lot, has a pile of algorithms which are highly iterative…
Andy Dent
  • 17,578
  • 6
  • 88
  • 115
6
votes
3 answers

Gem not found in Ruby cron job in RVM env

I'm trying to run a simple ruby script on my old PPC machine running 10.5 in an RVM environment. Searching on SO, I've followed the chosen answer from this post. This is the line in cron as a result: SHELL=/bin/bash 00 * * * *…
sam452
  • 1,281
  • 3
  • 20
  • 33
6
votes
1 answer

Is it possible to run Nodejs on powerpc based Linux?

I tried to build the latest Linux 64bit stable version with ./configure make and make install but ended up with this error: ../deps/openssl/openssl/include/openssl/../../crypto/bn/bn.h:803:23: error: unknown type name ‘BN_ULONG’ So is it actually…
moriesta
  • 1,170
  • 4
  • 19
  • 38
6
votes
1 answer

How to extract function prototype from an ELF file?

I have been searching quite a lot, but haven't found a way to extract function prototype, atleast the argument types and return type from an ELF executable file. Using GNU BinUtils or any other method. I have tried using different options in…
Nithi89
  • 119
  • 2
  • 11
6
votes
1 answer

Overview/reference manual for Open Firmware Device Trees

I am trying to setup a driver for an embedded PowerPC board, and the correct way to do this today is to use the OpenFirmware Device Tree datastructure (the .dtb file, compiled from a .dts file). Creating a tree is pretty easy, but how do I get my…
jakobengblom2
  • 5,531
  • 2
  • 25
  • 33