ppc/spapr: tweak change system reset helper
commitb5b7f391817558f645034ea2e26bbed1e75eb731
authorNicholas Piggin <npiggin@gmail.com>
Wed, 25 Mar 2020 14:41:43 +0000 (26 00:41 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 7 May 2020 01:10:50 +0000 (7 11:10 +1000)
tree18b7b62b7789ed68f272b2bcc159b940965fba5a
parent86962462f89b2abbba18e5c2243d59bd408f04d4
ppc/spapr: tweak change system reset helper

Rather than have the helper take an optional vector address
override, instead have its caller modify env->nip itself.
This is more consistent when adding pnv nmi support, and also
with mce injection added later.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-Id: <20200325144147.221875-2-npiggin@gmail.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
target/ppc/cpu.h
target/ppc/excp_helper.c