diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2011-12-18 21:37:53 +0100 |
---|---|---|
committer | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2011-12-21 05:01:21 +0100 |
commit | abda1f37eed86f3501db2e5439c1a7b97171ea22 (patch) | |
tree | 380e130f82b5180895cfe02df916c8937cc60903 /hw/sd.c | |
parent | b8d334c828f14a341e18bcc123b303ec29f8df76 (diff) | |
download | qemu-abda1f37eed86f3501db2e5439c1a7b97171ea22.zip qemu-abda1f37eed86f3501db2e5439c1a7b97171ea22.tar.gz qemu-abda1f37eed86f3501db2e5439c1a7b97171ea22.tar.bz2 |
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>
Diffstat (limited to 'hw/sd.c')
-rw-r--r-- | hw/sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |