On Fri, Feb 27, 2026 at 1:36 PM Brian Cain <[email protected]> wrote:
> From: Brian Cain <[email protected]> > > The BADVA reg is referred to with the wrong identifier. The > CAUSE reg field of SSR is not yet modeled, we will dump > the SSR in a subsequent commit. > > Signed-off-by: Brian Cain <[email protected]> > --- > target/hexagon/cpu.c | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) > > diff --git a/target/hexagon/cpu.c b/target/hexagon/cpu.c > index 58a22ee41f2..82c726139f7 100644 > --- a/target/hexagon/cpu.c > +++ b/target/hexagon/cpu.c > @@ -117,6 +117,14 @@ static void print_reg(FILE *f, CPUHexagonState *env, > int regnum) > hexagon_regnames[regnum], value); > } > > +#ifndef CONFIG_USER_ONLY > +static void print_sreg(FILE *f, CPUHexagonState *env, int regnum) > +{ > + qemu_fprintf(f, " %s = 0x" TARGET_FMT_lx "\n", > + hexagon_sregnames[regnum], env->t_sreg[regnum]); > There are both t_sreg (thread) and g_sreg (global). Either use arch_get_system_reg to get the value or change the name of the function to print_t_sreg. > +} > +#endif > + >
