On Wed, Jan 3, 2018 at 6:30 PM, Richard Henderson <
richard.hender...@linaro.org> wrote:

> On 01/02/2018 04:44 PM, Michael Clark wrote:
> > +static const char *rv_ireg_name_sym[] = {
> > +    "zero", "ra",   "sp",   "gp",   "tp",   "t0",   "t1",   "t2",
> > +    "s0",   "s1",   "a0",   "a1",   "a2",   "a3",   "a4",   "a5",
> > +    "a6",   "a7",   "s2",   "s3",   "s4",   "s5",   "s6",   "s7",
> > +    "s8",   "s9",   "s10",  "s11",  "t3",   "t4",   "t5",   "t6",
> > +    NULL
> > +};
>
> static const char * const
>

OK.


> But maybe even better as
>
> static const char rv_ireg_name_sym[32][4]
>

Got it, but it would need to be [32][5] to make room for the NULL
terminator on zero.


> and without the useless NULL.
>

Yes. they are redundant.


> Otherwise,
>
> Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
>

Thanks.

These changes will be in the next spin of the patchset.

Reply via email to