]> git.proxmox.com Git - mirror_qemu.git/commit
escc: introduce escc_soft_reset_chn() for software reset
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 3 Sep 2021 11:32:17 +0000 (12:32 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 8 Sep 2021 10:09:45 +0000 (11:09 +0100)
commit8e8aa96590156577ed8a2623d1a2e4db4e5748b8
tree71447f3a27d0bcf3d89bb809eac46e646207a305
parent9d248a4be524a6c820634e9b58e79085972cb78f
escc: introduce escc_soft_reset_chn() for software reset

This new software reset function is to be called when the appropriate channel
software reset bit is written to register WR9. Its initial implementation is
the same as the existing escc_reset_chn() function used for device reset.

Add a new trace event when the guest initiates a soft reset via the WR9 register
to help diagnose guest reset issues.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20210903113223.19551-4-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
hw/char/escc.c
hw/char/trace-events