RISC-V: Fix missing initialization of riscv_csr_extra structs
authorSimon Cook <simon.cook@embecosm.com>
Wed, 27 May 2020 16:34:58 +0000 (17:34 +0100)
committerJim Wilson <jimw@sifive.com>
Wed, 27 May 2020 23:38:37 +0000 (16:38 -0700)
commit5c5055683b980c71e96b642565418ffdefc6f171
treebd69fd566ae5bc42aa9b94f048cb55fe9b0c179f
parent2a37823bfe57d43f6c43a48a00237ba169599c3c
RISC-V: Fix missing initialization of riscv_csr_extra structs

The next pointer of struct riscv_csr_extra was not always initilized
to NULL or a valid pointer, causing the assembler to attempt to read
through an uninitialized pointer on startup.

gas/ChangeLog:

        * config/tc-riscv.c (riscv_init_csr_hash): NULL initilize next
        pointer when creating struct riscv_csr_extra.
gas/ChangeLog
gas/config/tc-riscv.c