diff options
author | Andrew Jones <[email protected]> | 2023-02-24 17:26:24 +0100 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2023-03-14 21:26:01 -0700 |
commit | 0b2f658f5370d9818244682c76fd8f6a91b2b1af (patch) | |
tree | 97ff37c4c87a75daf3161eef26973fb8a9676f4e /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 816a69744102bc886edc3557d00e840e3e35e7d5 (diff) |
RISC-V: alternatives: Support patching multiple insns in assembly
As pointed out in commit d374a16539b1 ("RISC-V: fix compile error
from deduplicated __ALTERNATIVE_CFG_2"), we need quotes around
parameters passed to macros within macros to avoid spaces being
interpreted as separators. ALT_NEW_CONTENT was trying to handle
this by defining new_c has a vararg, but this isn't sufficient
for calling ALTERNATIVE() from assembly with multiple instructions
in the new/old sequences. Remove the vararg "hack" and use quotes.
Signed-off-by: Andrew Jones <[email protected]>
Reviewed-by: Conor Dooley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions