target/ppc: books: External interrupt cleanup
commit67baff7715b3c1a2beb7df7af615eb3f132b9d13
authorFabiano Rosas <farosas@linux.ibm.com>
Fri, 28 Jan 2022 12:15:06 +0000 (28 13:15 +0100)
committerCédric Le Goater <clg@kaod.org>
Fri, 28 Jan 2022 12:15:06 +0000 (28 13:15 +0100)
treeb83159c1f893c0fb2099959487ff0df53e10f0dc
parent58a02119f39581409444c31e04d6b8b2c15e6f8e
target/ppc: books: External interrupt cleanup

Since this is now BookS only, we can simplify the code a bit and check
has_hv_mode instead of enumerating the exception models. LPES0 does
not make sense if there is no MSR_HV.

Note that QEMU does not support HV mode on 970 and POWER5+ so we don't
set MSR_HV in msr_mask.

Signed-off-by: Fabiano Rosas <farosas@linux.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20220124184605.999353-5-farosas@linux.ibm.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
target/ppc/excp_helper.c