mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-28 11:50:37 -07:00
hw/sd.c: On CRC error, set CRC error status bit rather than clearing it
If we fail to validate the CRC for an SD command we should be setting COM_CRC_ERROR, not clearing it. (This bug actually has no effect currently because sd_req_crc_validate() always returns success.) Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
This commit is contained in:
parent
b8d334c828
commit
abda1f37ee
1 changed files with 1 additions and 1 deletions
2
hw/sd.c
2
hw/sd.c
|
|
@ -1300,7 +1300,7 @@ int sd_do_command(SDState *sd, SDRequest *req,
|
|||
}
|
||||
|
||||
if (sd_req_crc_validate(req)) {
|
||||
sd->card_status &= ~COM_CRC_ERROR;
|
||||
sd->card_status |= COM_CRC_ERROR;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue