Skip to contentSkip to conversation

What is the NIP?

DISCUSSION Brian K. Neidig 2 participants 2 messages Aug 15, 1999

lore
Share & tools
lore
#0 lore raw

I've looked throughout the code for a comment describing this, but couldn't find it. What is the purpose of the NIP? I think it is NOT QUITE the IP, but I don't know what it is supposed to be. In one place I saw the NIP being set to the instruction before a branch instruction, but other things seem to be happening with this variable.

Does it stand for anything? If I knew that, all may become clearer! For example, is it New Instruction Pointer? Or what?

Brian

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]

#1 lore raw
Quoted 5 lines · Brian K. Neidig

I've looked throughout the code for a comment describing this, but couldn't find it. What is the purpose of the NIP? I think it is NOT QUITE the IP, but I don't know what it is supposed to be. In one place I saw the NIP being set to the instruction before a branch instruction, but other things seem to be happening with this variable.

AFAIK, it's "next instruction pointer". IOW, it points to whatever instruction is supposed to be looked at by the processor next. A branch would thus change this, as I assume an interrupt would, but I'm not 100% positive about that.

David

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]