Inquiry about brl statement
Hello,
in the definition of the BRL_COND_FSYS_BUBBLE_DOWN macro in arch/ia64/kernel/gate.S, shouldn't there be a stop bit after the brl.cond instruction? According to the Intel specs, the current definition (which has no stop bit) triggers undefined behavior.
Regards,
Christian Kandeler
As I remember it, a taken branch acts as a stop whereas a non-taken branch doesn't (so if no explicit stop bit is following a branch, then it must be OK for the entire group to be executed in parallel). I suppose it's possible the definition changed or that my (admittedly bad) memory is playing tricks on me. ;-)
--david
Quoted 15 lines · Christian Kandeler
Hello,
in the definition of the
BRL_COND_FSYS_BUBBLE_DOWNmacro inarch/ia64/kernel/gate.S, shouldn't there be a stop bit after the brl.cond instruction? According to the Intel specs, the current definition (which has no stop bit) triggers undefined behavior.Regards,
Christian Kandeler
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Mosberger Consulting LLC, http://www.mosberger-consulting.com/
Quoted 5 lines
As I remember it, a taken branch acts as a stop whereas a non-taken branch doesn't (so if no explicit stop bit is following a branch, then it must be OK for the entire group to be executed in parallel). I suppose it's possible the definition changed or that my (admittedly bad) memory is playing tricks on me. ;-)
The SDM page for "brl" doesn't look to have any get-out-of stop-bits-free option. It says:
"This instruction must be immediately followed by a stop; otherwise
its behaviour is undefined."
-Tony
Tony,
I'm sure I missed that point about brl. I probably just assumed it would have the same behavior as regular branches. Thanks for catching that.
--david
Quoted 14 lines · Tony
Quoted 5 lines
As I remember it, a taken branch acts as a stop whereas a non-taken branch doesn't (so if no explicit stop bit is following a branch, then it must be OK for the entire group to be executed in parallel). I suppose it's possible the definition changed or that my (admittedly bad) memory is playing tricks on me. ;-)
The SDM page for "brl" doesn't look to have any get-out-of stop-bits-free option. It says:
"This instruction must be immediately followed by a stop; otherwise
its behaviour is undefined."-Tony
Signature · 1 line
Mosberger Consulting LLC, http://www.mosberger-consulting.com/
David:
If brl had existed from the beginning, then its stop-bit requirements would have matched those of regular branches. However, it was added after Merced could no longer be changed, and because of where it is encoded, and the desire to enable an OS to emulate it on Merced, it had to have the must-always-be-followed-by-a-stop-bit rule.
-- Jim
Quoted 46 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of David Mosberger-Tang
Sent: Friday, April 27, 2007 1:01 PM
To: Luck, Tony
Cc: Christian Kandeler; [email protected]
Subject: Re: Inquiry about brl statementTony,
I'm sure I missed that point about brl. I probably just assumed it would have the same behavior as regular branches. Thanks for catching that.
--david
Quoted 1 line · Tony
Quoted 1 line
As I remember it, a taken branch acts as a stop whereas a
non-taken
Quoted 1 line
Quoted 1 line
branch doesn't (so if no explicit stop bit is following a
branch, then
Quoted 2 lines
Quoted 2 lines
it must be OK for the entire group to be executed in parallel). I suppose it's possible the definition changed or that my
(admittedly
Quoted 3 lines
Quoted 1 line
bad) memory is playing tricks on me. ;-)
The SDM page for "brl" doesn't look to have any get-out-of
stop-bits-free
Quoted 7 lines
option. It says:
"This instruction must be immediately followed by a stop; otherwise
its behaviour is undefined."-Tony
Signature · 6 lines
Mosberger Consulting LLC, http://www.mosberger-consulting.com/ - To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html