diff options
author | Nelson Chu <nelson@rivosinc.com> | 2025-03-13 10:31:36 +0800 |
---|---|---|
committer | Nelson Chu <nelson@rivosinc.com> | 2025-03-18 12:16:27 +0800 |
commit | e4c9f0e6c3a665c0a711dc6bf74e37dfc370e28c (patch) | |
tree | d9cbd3444c027067b7439d8e10b5a1453f032791 /gdb/go-valprint.c | |
parent | 433ccc440b51673ed3fce85a8dedca24f16ccab2 (diff) | |
download | binutils-e4c9f0e6c3a665c0a711dc6bf74e37dfc370e28c.zip binutils-e4c9f0e6c3a665c0a711dc6bf74e37dfc370e28c.tar.gz binutils-e4c9f0e6c3a665c0a711dc6bf74e37dfc370e28c.tar.bz2 |
RISC-V: Avoid parsing arch string repeatedly for dis-assembler
Since we now always generate $x+isa for now, these would increase the
dis-assemble time by parsing the same architecture string repeatedly. We
already have `arch_str' field into `subset_list' to record the current
architecture stirng, but it's only useful for assembler, since dis-assembler
and linker don't need it before. Now for dis-assembler, we just need to
update the `arch_str' after parsing the architecture stirng, and then avoid
parsing repeatedly if the strings are the same.
Diffstat (limited to 'gdb/go-valprint.c')
0 files changed, 0 insertions, 0 deletions