diff options
Diffstat (limited to 'gas/config/tc-riscv.c')
-rw-r--r-- | gas/config/tc-riscv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index 7807dd0..291d07f 100644 --- a/gas/config/tc-riscv.c +++ b/gas/config/tc-riscv.c @@ -879,7 +879,7 @@ riscv_init_csr_hash (const char *name, if (!need_enrty) return; - entry = XNEW (struct riscv_csr_extra); + entry = notes_alloc (sizeof (*entry)); entry->csr_class = class; entry->address = address; entry->define_version = define_version; |