On 21/9/26 23:46, Bernhard Beschow wrote:
When wiring struct IMXGPTState to the clock control module, it is
currently necessary to reach into its private data. Moreover, when
forgetting to wire the clock control module, QEMU will crash after the
guest has already started. Fix both by letting struct IMXGPTState
expose a link property which is checked at realize time.

Inspired-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Bernhard Beschow <[email protected]>
---
  hw/arm/fsl-imx25.c  |  3 ++-
  hw/arm/fsl-imx31.c  |  3 ++-
  hw/arm/fsl-imx6.c   |  3 ++-
  hw/arm/fsl-imx6ul.c |  3 ++-
  hw/arm/fsl-imx7.c   |  3 ++-
  hw/arm/fsl-imx8mm.c |  3 ++-
  hw/arm/fsl-imx8mp.c |  3 ++-
  hw/timer/imx_gpt.c  | 14 ++++++++++++++
  8 files changed, 28 insertions(+), 7 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

Reply via email to