diff options
author | Andrew Jones <ajones@ventanamicro.com> | 2023-02-24 17:26:24 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-03-14 21:26:01 -0700 |
commit | 0b2f658f5370d9818244682c76fd8f6a91b2b1af (patch) | |
tree | 97ff37c4c87a75daf3161eef26973fb8a9676f4e /tools/perf/scripts/python/export-to-postgresql.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 <ajones@ventanamicro.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230224162631.405473-2-ajones@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions