[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v8 11/35] Hexagon (target/hexagon) register fields
From: |
Richard Henderson |
Subject: |
Re: [PATCH v8 11/35] Hexagon (target/hexagon) register fields |
Date: |
Sun, 14 Feb 2021 09:25:47 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 2/7/21 9:46 PM, Taylor Simpson wrote:
> +const RegField reg_field_info[] = {
> +#define DEF_REG_FIELD(TAG, START, WIDTH) \
> + { START, WIDTH },
> +#include "reg_fields_def.h.inc"
> + { 0, 0 }
> +#undef DEF_REG_FIELD
> +};
What is the purpose of the 0,0 entry? Surely you don't actually reference
reg_field_info[NUM_REG_FIELDS]?
You could also annotate the declaration and definition of reg_field_info with
the array size:
extern const RegField reg_field_info[NUM_REG_FIELDS];
Otherwise,
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
- [PATCH v8 00/35] Hexagon patch series, Taylor Simpson, 2021/02/08
- [PATCH v8 02/35] Hexagon (target/hexagon) README, Taylor Simpson, 2021/02/08
- [PATCH v8 12/35] Hexagon (target/hexagon) instruction attributes, Taylor Simpson, 2021/02/08
- [PATCH v8 01/35] Hexagon Update MAINTAINERS file, Taylor Simpson, 2021/02/08
- [PATCH v8 14/35] Hexagon (target/hexagon) instruction printing, Taylor Simpson, 2021/02/08
- [PATCH v8 04/35] Hexagon (target/hexagon) scalar core definition, Taylor Simpson, 2021/02/08
- [PATCH v8 11/35] Hexagon (target/hexagon) register fields, Taylor Simpson, 2021/02/08
- Re: [PATCH v8 11/35] Hexagon (target/hexagon) register fields,
Richard Henderson <=
- [PATCH v8 03/35] Hexagon (include/elf.h) ELF machine definition, Taylor Simpson, 2021/02/08
- [PATCH v8 05/35] Hexagon (disas) disassembler, Taylor Simpson, 2021/02/08
- [PATCH v8 13/35] Hexagon (target/hexagon) instruction/packet decode, Taylor Simpson, 2021/02/08
- [PATCH v8 19/35] Hexagon (target/hexagon) generator phase 1 - C preprocessor for semantics, Taylor Simpson, 2021/02/08
- [PATCH v8 06/35] Hexagon (target/hexagon) register names, Taylor Simpson, 2021/02/08
- [PATCH v8 09/35] Hexagon (target/hexagon) architecture types, Taylor Simpson, 2021/02/08