Thread (20 messages) flat view 20 messages, 5 authors, 2026-06-11

Re: [PATCH v1 1/6] objtool/powerpc: Add build-time fixup of alternate feature branch targets

From: Segher Boessenkool <hidden>
Date: 2026-05-05 16:17:24
Also in: linux-kbuild, lkml

Hi!

On Tue, May 05, 2026 at 04:45:39PM +0200, Peter Zijlstra wrote:
On Tue, May 05, 2026 at 02:16:23PM +0530, Sathvika Vasireddy wrote:
quoted
 	switch (opcode) {
+	case 16:
Like case 18 below, this wants a comment describing which instruction
this is; bclr ?
Yes.  It is 19/16, b[c]lr (primary opcode 19, secondary opcode 16).

Where is it described what INSN_RETURN actually means for objtool?  Not
in the header file :-(

For PowerPC, all three of b[c]lr[l], b[c]ctr[l], and b[c]tar[l] are
indirect jumps, to an address in a register.  They do absolutely nothing
typically done in a function epilog, like "return" insns in some other
archs do.  But the BH field ("branch hint") in the instruction helps
predict the control flow involving the insn as something in a call and
return pattern :-)


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help