commit | 8c1d0aea1df1ad659d1c46a816ee2e41cbcdce77 | [log] [tgz] |
---|---|---|
author | Jan Beulich <jbeulich@suse.com> | Fri Jul 05 08:39:28 2024 +0200 |
committer | Jan Beulich <jbeulich@suse.com> | Fri Jul 05 08:39:28 2024 +0200 |
tree | 6f82c98c5892f43be6687b227cd44e16c61b44c3 | |
parent | e6292a4b2c7ff58f40f7717eb3659996fe5deae3 [diff] |
RISC-V: avoid use of match_opcode() in riscv_insn_types[] As of 27b33966b18e ("RISC-V: disallow x0 with certain macro-insns") the .match_func field may be NULL for entries used for assembly only, which is the case for the entire table. With .match and .mask both zero the function would only ever succeed anyway. Save almost a hundred base relocations in the final executable by using NULL instead.