Skip to content

Commit

Permalink
hw/microblaze: Do not allow xlnx-zynqmp-pmu-soc to be created by the …
Browse files Browse the repository at this point in the history
…user

Using xlnx-zynqmp-pmu-soc on the command line causes QEMU to crash:

 ./qemu-system-microblazeel -M petalogix-ml605 -device xlnx-zynqmp-pmu-soc
 **
 ERROR:tcg/tcg.c:813:tcg_register_thread: assertion failed: (n < tcg_max_ctxs)
 Bail out!
 Aborted (core dumped)

Mark the device with "user_creatable = false" to avoid that this can happen.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2229
Message-ID: <20240322183153.1023359-1-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
  • Loading branch information
huth committed Mar 25, 2024
1 parent 8c37f86 commit ed355dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hw/microblaze/xlnx-zynqmp-pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ static void xlnx_zynqmp_pmu_soc_class_init(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);

/* xlnx-zynqmp-pmu-soc causes crashes when cold-plugged twice */
dc->user_creatable = false;
dc->realize = xlnx_zynqmp_pmu_soc_realize;
}

Expand Down

0 comments on commit ed355dc

Please sign in to comment.