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