diff options
author | Uros Bizjak <[email protected]> | 2024-03-19 11:40:12 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2024-03-19 13:15:34 +0100 |
commit | a3ff53167cef2b5c6c8948246172d6f9279f037f (patch) | |
tree | 011ca9e0a865e1e7d27d31747c60408ed28fd71e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 4ae3dc83b047d51485cce1a72be277a110d77c91 (diff) |
x86/asm: Remove %P operand modifier from altinstr asm templates
The "P" asm operand modifier is a x86 target-specific modifier.
For x86_64, when used with a symbol reference, the "%P" modifier
emits "sym" instead of "sym(%rip)". This property is currently
used to prevent %RIP-relative addressing in .altinstr sections.
%RIP-relative addresses are nowadays correctly handled in .altinstr
sections, so remove %P operand modifier from altinstr asm templates.
Also note that unlike GCC, clang emits %rip-relative symbol
reference with "P" asm operand modifier, so the patch also unifies
symbol handling with both compilers.
No functional changes intended.
Signed-off-by: Uros Bizjak <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions