Skip to content

Commit

Permalink
openpic: fix segfault on -M mac99 savevm
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mcayland authored and agraf committed Mar 9, 2015
1 parent 2360b6e commit 4efef98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/intc/openpic.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4efef98

Please sign in to comment.