PPC: Redesign interrupt trigger path
commit41557447d30eeb944e42069513df13585f5e6c7f
authorAlexander Graf <agraf@suse.de>
Fri, 10 Sep 2010 15:08:34 +0000 (10 15:08 +0000)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Wed, 15 Sep 2010 14:18:33 +0000 (15 16:18 +0200)
tree5c4382b8e922a57aab31d9b169b6fa3bf97b849d
parentf844c817d726cd2bdb431aa41c8217891ede2eaf
PPC: Redesign interrupt trigger path

According to the Book3S spec, the interrupt context starts with an MSR
value that is rather simple. If we leave out the HV case, it's almost
always 0.

To reflect this, let's redesign the way that MSR value gets calculated.
Using this, we also squash the bug where MSR_POW can slip through into
the interrupt handler MSR.

Reported-by: Thomas Monjalon <thomas.monjalon@openwide.fr>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
target-ppc/helper.c