Commit 93590ddf72 for qemu.org

commit 93590ddf72a8b4daa5e63d9e2705faedf07040f6
Author: Brian Cain <brian.cain@oss.qualcomm.com>
Date:   Wed Aug 19 06:03:41 2026 -0700

    hw/hexagon: assign a distinct htid to each DSP machine CPU

    The htid property defaults to 0 and hexagon_dsp.c never set it, so every
    CPU on the DSP machines came up as hardware thread 0.

    This bug was causing h2 test failures.

    Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
    Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
    Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>

diff --git a/hw/hexagon/hexagon_dsp.c b/hw/hexagon/hexagon_dsp.c
index 2198436a44..5b2b6e312b 100644
--- a/hw/hexagon/hexagon_dsp.c
+++ b/hw/hexagon/hexagon_dsp.c
@@ -125,6 +125,8 @@ static void hexagon_common_init(MachineState *machine, Rev_t rev,
         HexagonCPU *cpu = HEXAGON_CPU(object_new(machine->cpu_type));
         qemu_register_reset(do_cpu_reset, cpu);

+        qdev_prop_set_uint32(DEVICE(cpu), "htid", i);
+
         /*
          * CPU #0 is the only CPU running at boot, others must be
          * explicitly enabled via start instruction.