powerpc: Add PPC_NOP_INSTR, a hash define for the preferred nop instruction

A bunch of code has hard-coded the value for a "nop" instruction, it
would be nice to have a #define for it.

Signed-off-by: Michael Ellerman <[email protected]>
Acked-by: Kumar Gala <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
Michael Ellerman 2008-06-24 11:32:35 +10:00 • committed by Paul Mackerras
commit b7bcda631e
4 changed files with 7 additions and 3 deletions

View file

@ -12,6 +12,8 @@
#include <asm/types.h>
#define PPC_NOP_INSTR 0x60000000
/* Flags for create_branch:
* "b" == create_branch(addr, target, 0);
* "ba" == create_branch(addr, target, BRANCH_ABSOLUTE);