diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2015-02-09 22:40:49 +0000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2015-03-09 15:00:06 +0100 |
commit | 4efef9864082c8daa2a0fcff2d5bc0bfca221d1f (patch) | |
tree | f88f8e556e5eed90f623b711dacf86d59304b7c5 /hw/intc/openpic.c | |
parent | 2360b6e84f78d41fa0f76555a947148b73645259 (diff) |
openpic: fix segfault on -M mac99 savevm
A simple copy/paste error causes savevm on -M mac99 to segfault.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/intc/openpic.c')
-rw-r--r-- | hw/intc/openpic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/intc/openpic.c b/hw/intc/openpic.c index 305377d899..e76d7d1db7 100644 --- a/hw/intc/openpic.c +++ b/hw/intc/openpic.c @@ -1335,7 +1335,7 @@ static void openpic_save(QEMUFile* f, void *opaque) for (i = 0; i < opp->max_irq; i++) { qemu_put_be32s(f, &opp->src[i].ivpr); qemu_put_be32s(f, &opp->src[i].idr); - qemu_get_be32s(f, &opp->src[i].destmask); + qemu_put_be32s(f, &opp->src[i].destmask); qemu_put_sbe32s(f, &opp->src[i].last_cpu); qemu_put_sbe32s(f, &opp->src[i].pending); } |