Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RISC-V: Fix CSR hashtable initialization
This commit fixes the issue which repeatedly initializing CSR hashtable everytime we parse an CSR and makes sure that CSR hashtable initialization occurs when either architecture or option is changed (e.g. setting a disassembler option `priv-spec' on GDB may change the privileged spec version, changing canonical CSR names dynamically). opcodes/ChangeLog: * riscv-dis.c (init_dis_per_arch_and_options): Reset the CSR init flag for privileged spec version change. (print_insn_args): Don't repeatedly initialize CSR hashtable. Use a file scope flag to initialize CSR hashtable to enable resetting the flag.
- Loading branch information