sdcard: warn if host uses an incorrect address for APP CMD (CMD55)
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com> Message-id: 20180215221325.7611-15-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
d691148655
commit
3116280040
@ -1391,6 +1391,11 @@ static sd_rsp_type_t sd_normal_command(SDState *sd,
|
|||||||
case sd_identification_state:
|
case sd_identification_state:
|
||||||
case sd_inactive_state:
|
case sd_inactive_state:
|
||||||
return sd_illegal;
|
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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user