openpic: fix remaining issues from idr-to-destmask conversion
commitf40c360c0da020a1a478f8e60dd205d7412bc315
authorScott Wood <scottwood@freescale.com>
Mon, 21 Jan 2013 15:53:51 +0000 (21 15:53 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 25 Jan 2013 21:02:56 +0000 (25 22:02 +0100)
tree766cc08a70af14c73a97367e7499961f7c9de785
parent1ea1ce8ac305d9e006bc8b0f5f3554793fd2fa43
openpic: fix remaining issues from idr-to-destmask conversion

openpic_update_irq() was checking idr rather than destmask, treating
it as if it were a simple bitmap of cpus.  Changed to use destmask.

IPI delivery was removing bits directly from .idr, without calling
write_IRQreg_idr so that the change could be conveyed to destmask.
Changed to use destmask directly.

Save/restore destmask when serializing, as due to the IPI change it
cannot be reproduced from idr.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/openpic.c