diff options
author | Kevin Wolf <kwolf@redhat.com> | 2013-01-15 16:12:09 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-01-25 18:18:36 +0100 |
commit | 4ac557c89b04d506c876a0a378e815d822261c8a (patch) | |
tree | f0c0053a8233eb245ce6b4f1a8321642afdd3e11 /hw/ide/ahci.c | |
parent | 1147bb15a715a907a91195c2ed601fc926e43d46 (diff) | |
download | qemu-4ac557c89b04d506c876a0a378e815d822261c8a.tar.gz qemu-4ac557c89b04d506c876a0a378e815d822261c8a.tar.bz2 qemu-4ac557c89b04d506c876a0a378e815d822261c8a.zip |
ahci: Change data types in preparation for migration
The size of an int depends on the host, so in order to be able to
migrate these fields, make them either int32_t or bool, depending on the
use.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/ide/ahci.c')
-rw-r--r-- | hw/ide/ahci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 2d185cb20f..f91cff2b4d 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -241,7 +241,7 @@ static void ahci_port_write(AHCIState *s, int port, int offset, uint32_t val) if ((pr->cmd & PORT_CMD_FIS_ON) && !s->dev[port].init_d2h_sent) { ahci_init_d2h(&s->dev[port]); - s->dev[port].init_d2h_sent = 1; + s->dev[port].init_d2h_sent = true; } check_cmd(s, port); @@ -494,7 +494,7 @@ static void ahci_reset_port(AHCIState *s, int port) pr->scr_err = 0; pr->scr_act = 0; d->busy_slot = -1; - d->init_d2h_sent = 0; + d->init_d2h_sent = false; ide_state = &s->dev[port].port.ifs[0]; if (!ide_state->bs) { @@ -946,7 +946,7 @@ static int handle_cmd(AHCIState *s, int port, int slot) ide_state->hcyl = 0xeb; debug_print_fis(ide_state->io_buffer, 0x10); ide_state->feature = IDE_FEATURE_DMA; - s->dev[port].done_atapi_packet = 0; + s->dev[port].done_atapi_packet = false; /* XXX send PIO setup FIS */ } @@ -991,7 +991,7 @@ static int ahci_start_transfer(IDEDMA *dma) if (is_atapi && !ad->done_atapi_packet) { /* already prepopulated iobuffer */ - ad->done_atapi_packet = 1; + ad->done_atapi_packet = true; goto out; } |