hw/sd.c: Handle illegal commands in sd_do_command
commit53bb8cc4855827f2981bf0566076233573a05bd7
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 18 Dec 2011 20:37:55 +0000 (18 21:37 +0100)
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>
Wed, 21 Dec 2011 04:01:31 +0000 (21 05:01 +0100)
treeed473e8d7151bd594b5aa2b6a7d93219708e4d7f
parente30d59388bab90418b414c1f29d5779361d31ffe
hw/sd.c: Handle illegal commands in sd_do_command

Add an extra sd_illegal value to the sd_rsp_type_t enum so that
sd_app_command() and sd_normal_command() can tell sd_do_command()
that the command was illegal. This is needed so we can do things
like reset certain status bits only on receipt of a valid command.
For the moment, just use it to pull out the setting of the
ILLEGAL_COMMAND status bit into sd_do_command().

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