hw/sd.c: Correct handling of type B SD status bits
commit10a412dab3f54439ea3d60274eb41668f7d83bd2
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 18 Dec 2011 20:37:58 +0000 (18 21:37 +0100)
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>
Wed, 21 Dec 2011 04:01:42 +0000 (21 05:01 +0100)
tree124c16df365c749d417049d670a97786ca4d5282
parent5b08bfe2e94c7b1ce39aa3b196231c7f30a5defd
hw/sd.c: Correct handling of type B SD status bits

Correct how we handle the type B ("cleared on valid command")
status bits. In particular, the CURRENT_STATE bits in a response
should be the state of the card when it received that command,
not the state when it received the preceding command. (This is
one of the issues noted in LP:597641.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
hw/sd.c