summaryrefslogtreecommitdiffstats
path: root/hw/core/null-machine.c
diff options
context:
space:
mode:
authorCédric Le Goater2019-01-29 12:46:05 +0100
committerPeter Maydell2019-01-29 12:46:05 +0100
commitf95c4bffdc4c53b29f89762cab4adc5a43f95daf (patch)
tree9adeee6804f0e7b836a8d22908893d46024e04ad /hw/core/null-machine.c
parentaspeed/smc: Add dummy data register (diff)
downloadqemu-f95c4bffdc4c53b29f89762cab4adc5a43f95daf.tar.gz
qemu-f95c4bffdc4c53b29f89762cab4adc5a43f95daf.tar.xz
qemu-f95c4bffdc4c53b29f89762cab4adc5a43f95daf.zip
aspeed/smc: snoop SPI transfers to fake dummy cycles
The m25p80 models dummy cycles using byte transfers. This works well when the transfers are initiated by the QEMU model of a SPI controller but when these are initiated by the OS, it breaks emulation. Snoop the SPI transfer to catch commands requiring dummy cycles and replace them with byte transfers compatible with the m25p80 model. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com> Message-id: 20190124140519.13838-5-clg@kaod.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/core/null-machine.c')
0 files changed, 0 insertions, 0 deletions