aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorHervé Poussineau <hpoussin@reactos.org>2012-07-09 12:02:22 +0200
committerBlue Swirl <blauwirbel@gmail.com>2012-07-14 10:11:33 +0000
commit1b26eaa1382b333ef447ca27ff7ce166393cb46d (patch)
treea13624d525c6818f84264f933388f7c980137d4f /hw
parent638dfeda3ef558b6d743d43d089e1c4a8cec321a (diff)
downloadqemu-1b26eaa1382b333ef447ca27ff7ce166393cb46d.zip
qemu-1b26eaa1382b333ef447ca27ff7ce166393cb46d.tar.gz
qemu-1b26eaa1382b333ef447ca27ff7ce166393cb46d.tar.bz2
esp: execute select commands immediately when it is a non-dma command
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/esp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/esp.c b/hw/esp.c
index 8d73e56..aff8de6 100644
--- a/hw/esp.c
+++ b/hw/esp.c
@@ -270,7 +270,7 @@ static void handle_satn(ESPState *s)
uint8_t buf[32];
int len;
- if (!s->dma_enabled) {
+ if (s->dma && !s->dma_enabled) {
s->dma_cb = handle_satn;
return;
}
@@ -284,7 +284,7 @@ static void handle_s_without_atn(ESPState *s)
uint8_t buf[32];
int len;
- if (!s->dma_enabled) {
+ if (s->dma && !s->dma_enabled) {
s->dma_cb = handle_s_without_atn;
return;
}
@@ -296,7 +296,7 @@ static void handle_s_without_atn(ESPState *s)
static void handle_satn_stop(ESPState *s)
{
- if (!s->dma_enabled) {
+ if (s->dma && !s->dma_enabled) {
s->dma_cb = handle_satn_stop;
return;
}