hw/sd.c: convert wp_groups in SDState to bitfield
authorMitsyanko Igor <i.mitsyanko@samsung.com>
Mon, 13 Aug 2012 10:04:06 +0000 (11:04 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Aug 2012 10:04:06 +0000 (11:04 +0100)
commita9c0183059d6a4e4d940cd86ac0f9402b0655d24
tree7873e8e6e021e4ac304eb4a143a3e0a11c2e416d
parent01fd41ab3fb69971c24a69ed49cde96086d81278
hw/sd.c: convert wp_groups in SDState to bitfield

Representing each group write protection flag with only one bit instead of int
variable significantly reduces memory consumption.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/sd.c