On Tue, Mar 10, 2026 at 10:20 PM Brian Cain <[email protected]> wrote:
> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> > Signed-off-by: Brian Cain <[email protected]> > --- > meson.build | 1 + > hw/hexagon/hexagon_globalreg.c | 73 ++++++++++++++++++++++++++++++++++ > hw/hexagon/trace-events | 3 ++ > 3 files changed, 77 insertions(+) > create mode 100644 hw/hexagon/trace-events > > diff --git a/meson.build b/meson.build > index 7b4e5bc72b5..286edfb99dc 100644 > --- a/meson.build > +++ b/meson.build > @@ -3633,6 +3633,7 @@ if have_system > 'hw/display', > 'hw/dma', > 'hw/fsi', > + 'hw/hexagon', > 'hw/hyperv', > 'hw/i2c', > 'hw/i3c', > diff --git a/hw/hexagon/hexagon_globalreg.c > b/hw/hexagon/hexagon_globalreg.c > index 5187b91dcae..a30c16cd7ba 100644 > --- a/hw/hexagon/hexagon_globalreg.c > +++ b/hw/hexagon/hexagon_globalreg.c > @@ -16,11 +16,82 @@ > #include "target/hexagon/cpu.h" > #include "target/hexagon/hex_regs.h" > #include "qemu/log.h" > +#include "trace/trace-hw_hexagon.h" > #include "qapi/error.h" > > #define IMMUTABLE (~0) > #define INVALID_REG_VAL 0xdeadbeef > > +static const char *hex_sreg_names[] = { > + [HEX_SREG_SGP0] = "sgp0", > + [HEX_SREG_SGP1] = "sgp1", > + [HEX_SREG_STID] = "stid", > Why not use the array in cpu.c from an earlier patch?
