aboutsummaryrefslogtreecommitdiff
path: root/scripts/dump-guest-memory.py
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-08-08 14:57:44 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-08-12 18:52:12 +0200
commite262646e12acd6c1132e03d57fea20680a503251 (patch)
treeef63ca705d077af7e231b287e6618e17fe57fea5 /scripts/dump-guest-memory.py
parent624d7463043c120facfab2b54985fcfb679d5379 (diff)
downloadqemu-e262646e12acd6c1132e03d57fea20680a503251.zip
qemu-e262646e12acd6c1132e03d57fea20680a503251.tar.gz
qemu-e262646e12acd6c1132e03d57fea20680a503251.tar.bz2
hw/sd/ssi-sd: Return noise (dummy byte) when no card connected
Commit 1585ab9f1ba ("hw/sd/sdcard: Fill SPI response bits in card code") exposed a bug in the SPI adapter: if no SD card is plugged, we are returning "there is a card with an error". This is wrong, we shouldn't return any particular packet response, but the noise shifted on the MISO line. Return the dummy byte, otherwise we get: qemu-system-riscv64: ../hw/sd/ssi-sd.c:160: ssi_sd_transfer: Assertion `s->arglen > 0' failed. Reported-by: Guenter Roeck <linux@roeck-us.net> Fixes: 775616c3ae8 ("Partial SD card SPI mode support") Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Gustavo Romero <gustavo.romero@linaro.org> Tested-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20250812140415.70153-2-philmd@linaro.org>
Diffstat (limited to 'scripts/dump-guest-memory.py')
0 files changed, 0 insertions, 0 deletions