OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d06cb7
)
hw/sd.c: Clear status bits when read via response r6
author
Peter Maydell
<peter.maydell@linaro.org>
Sun, 18 Dec 2011 20:38:00 +0000
(21:38 +0100)
committer
Andrzej Zaborowski
<andrew.zaborowski@intel.com>
Wed, 21 Dec 2011 04:01:49 +0000
(
05:01
+0100)
Response format r6 includes a subset of the status bits;
clear the clear-on-read bits which are read by an r6 response.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
hw/sd.c
patch
|
blob
|
history
diff --git
a/hw/sd.c
b/hw/sd.c
index
6614cbf
..
2b8ebe4
100644
(file)
--- a/
hw/sd.c
+++ b/
hw/sd.c
@@
-371,6
+371,7
@@
static void sd_response_r6_make(SDState *sd, uint8_t *response)
status = ((sd->card_status >> 8) & 0xc000) |
((sd->card_status >> 6) & 0x2000) |
(sd->card_status & 0x1fff);
+ sd->card_status &= ~(CARD_STATUS_C & 0xc81fff);
response[0] = (arg >> 8) & 0xff;
response[1] = arg & 0xff;