LWN.net Logo

RISC can do that

RISC can do that

Posted Jul 22, 2009 18:13 UTC (Wed) by klossner (subscriber, #30046)
In reply to: Fun with NULL pointers, part 1 by clugstj
Parent article: Fun with NULL pointers, part 1

PowerPC silently drops the two low bits when loading an address into the PC, so a branch to 1 becomes a branch to 0. The misaligned-address exception occurs only for load/store instructions.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds