From: Philippe Mathieu-Daudé Date: Thu, 22 Feb 2018 15:12:54 +0000 (+0000) Subject: sdcard: warn if host uses an incorrect address for APP CMD (CMD55) X-Git-Tag: v2.12.0-rc0~71^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3116280040a7ca898b925651001962167433b084;p=thirdparty%2Fqemu.git sdcard: warn if host uses an incorrect address for APP CMD (CMD55) Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Message-id: 20180215221325.7611-15-f4bug@amsat.org Signed-off-by: Peter Maydell --- diff --git a/hw/sd/sd.c b/hw/sd/sd.c index d6dd2b9a15d..c8351d4f0be 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1391,6 +1391,11 @@ static sd_rsp_type_t sd_normal_command(SDState *sd, case sd_identification_state: case sd_inactive_state: return sd_illegal; + case sd_idle_state: + if (rca) { + qemu_log_mask(LOG_GUEST_ERROR, + "SD: illegal RCA 0x%04x for APP_CMD\n", req.cmd); + } default: break; }