ack/mach/powerpc
George Koehler 1dfd5524e4 In PowerPC top, don't delete addi r0, r0, 0
Also don't delete addis r0, r0, 0.  These instructions are special
cases that set r0 to zero.  If we delete them, then r0 keeps its old
value.

I caught this bug because osxppc protects the .text segment against
writing.  (linuxppc doesn't protect it.)  A program tried to set r0 to
the NULL pointer, but top deleted the instruction, so r0 kept an old
return address pointing into .text.  Later the program checked that r0
wasn't NULL, tried to write to address r0, and crashed.
2017-01-26 12:44:32 -05:00
..
as Teach the assembler about PowerPC extended mnemonics. 2017-01-21 23:49:29 -05:00
libem In PowerPC libem, remove tge.s and powerpc.h 2017-01-26 12:39:16 -05:00
libend Mostly add support for the experimental and largely broken linuxppc platform. 2016-09-15 23:12:03 +02:00
mcg Use a better NOT; and after remembering that PowerPC bit numbers are all 2017-01-07 01:03:15 +01:00
ncg Rewrite how PowerPC ncg does conditional branches and tests. 2017-01-25 19:08:55 -05:00
top In PowerPC top, don't delete addi r0, r0, 0 2017-01-26 12:44:32 -05:00