hw/sd.c: On CRC error, set CRC error status bit rather than clearing it
commitabda1f37eed86f3501db2e5439c1a7b97171ea22
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 18 Dec 2011 20:37:53 +0000 (18 21:37 +0100)
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>
Wed, 21 Dec 2011 04:01:21 +0000 (21 05:01 +0100)
tree380e130f82b5180895cfe02df916c8937cc60903
parentb8d334c828f14a341e18bcc123b303ec29f8df76
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>
hw/sd.c