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
-1
votes
1 answer

Is there a flag register in the Power ISA?

Is there a flag register in the Power ISA, similar to EFLAGS in the x86 machines? It could have some other name, for example it could be called "Status Register" or something of that kind, but its purpose would be saving some general attributes of…
JSpruce
  • 23
  • 2
-1
votes
1 answer

What does this PPC assembly listing do, using lwz from 0(r12) and 4(r12) before a BCTR indirect jump?

I found the following procedure in dissasembly: lwz r0, 0(r12) stw r2, 0x14(r1) mtctr r0 lwz r2, 4(r12) bctr What does this listing do? Is it AltiVec code? What is the C-equivalent of this procedure?
void_17
  • 1
  • 1
-1
votes
1 answer

powerpc-elf abi instead of elfv2 on 64 bit powerpc systems, is it possible?

I have been trying to cross compile gcc for 64-bit powerpc architecture. However, GCC configuration lacks "powerpc64-elf" target. It has "powerpc64-linux", powerpc-rtems (which can produces 32/64 bit code). Digging further, I have read the following…
memoks
  • 11
  • 3
-1
votes
1 answer

GDB cannot step over a function if the following lines don't include a decision or branch

I am having problems with debugging (stepping over) in C++ with GDB. I have an in house developed RTOS which runs on a PowerPC e500mc target. Software versions: GCC 4.9.2, gdb-server 5 ~(I am not sure about the exact version), GDB 7.9.1 (I also…
tarkandinc
  • 25
  • 6
-1
votes
1 answer

How to reduce CPU usage in a loop on a PowerPC Macintosh?

I’m working on firmware level code that is constantly checking for user input: while (1) { if (user_input()) { Handle_user_input() } } Currently this loop causes CPU usage to be 100%. What I am hoping for is a way to implement a…
user1766438
  • 492
  • 4
  • 13
-1
votes
1 answer

64-bit data bus vs 32-bit address bus?

According to some sources, the PowerPC 7xx family has a 64-bit data bus, but a 32-bit address bus. I wonder what's the difference between those two, in especially: If we talk about 32-bit or 64-bit architectures, does that refer to the bitness of…
SampleTime
  • 291
  • 3
  • 19
-1
votes
1 answer

How to have GCC combine "move r10, r3; store r10" into a "store r3"?

I'm working Power9 and utilizing the hardware random number generator instruction called DARN. I have the following inline assembly: uint64_t val; __asm__ __volatile__ ( "xor 3,3,3 \n" // r3 = 0 "addi 4,3,-1 …
jww
  • 97,681
  • 90
  • 411
  • 885
-1
votes
2 answers

Powerpc systemsim-p8 does not boot debian 64 in ubuntu 64 16.04 LTS

I am trying to boot a debian ppc power8 ( or 7 ) in a simulation. I followed the instructions in [1]. The only thing I manage to boot is an ram drive ( initrd ) with mambo kernel, but it is a closed source. I can't do much with it. So , now I try…
-1
votes
1 answer

What tools do I need to port packages to powerpc?

I'm relatively new to coding and building apps, and I wan to contribute to PowerPC Linux via packages. So I'm trying to port apps and tools over to then package them for the platform and try to package them for different distro's such as ubuntu and…
-1
votes
2 answers

why do bit operations not work correctly

I'm at a complete loss! Why does my code not work as expected? I have the following code: UINT64 tmpA = 0; UINT64 tmpB = 0; UINT64 alarmed_lans = 0; int foprtmsk[2]={0}; switch_fo_prtmsk_getptr(foprtmsk); tmpA = foprtmsk[1]; …
stdcerr
  • 13,725
  • 25
  • 71
  • 128
-1
votes
1 answer

Adding a condition to Linker Command File

Can i write a condition in the .lcf ? I want to check if the sum of certain sections is above a certain threshold. if yes i want the linker to show Error/Warning I'm new to the .lcf and i don't know if this is possible or not. Any Advice ? Linker…
-1
votes
2 answers

What is r4 used for in ppc?

The title said all, if someone can explain me how it's work that would be amazing and also i'm new at PPC and i'm blocked for the R4 i'm not sure to completely understand.
-1
votes
1 answer

Why U-Boot (DENX) stays in boot loop and gives "Program Check Exception"?

I have a MPC5200 v2.2, Core v1.4 on a phyCORE-MPC5200-tiny Board. DRAM 64 MB, FLASH 16 MB. RTOS VxWorks 6.9. I have problems when booting the embedded system and it stays in boot loop, when U-Boot/uboot (DENX) tries so load image, saying: "Program…
Chris
  • 739
  • 2
  • 8
  • 23
-1
votes
1 answer

Powerpc assembly instruction bl SYM

What is the meaning of "SYM" in the following powerpc assembly code branch instruction? bl SYM (_subroutine)
-1
votes
1 answer

Storing values from special function registers to a variable

I am working on a development project based on freescale MPC5534 controller. For a certain requirement, i need to store values from two special function registers(namely SRR0 and SRR1) during an ISR(already existing) to variables which can be…
stenvar
  • 109
  • 5
1 2 3
46
47