]> git.proxmox.com Git - mirror_qemu.git/commit
target/ppc: powerpc_excp: Set vector earlier
authorFabiano Rosas <farosas@linux.ibm.com>
Tue, 4 Jan 2022 06:55:34 +0000 (07:55 +0100)
committerCédric Le Goater <clg@kaod.org>
Tue, 4 Jan 2022 06:55:34 +0000 (07:55 +0100)
commitd1cbee61abd5ca76cd04886d066e18fcda8d1116
treee2151025345848d7aa2f7082d7e5f20a8b64d6c4
parent2541e686589a86167cbee98162d3fde2bbf67bc2
target/ppc: powerpc_excp: Set vector earlier

None of the interrupt setup code touches 'vector', so we can move it
earlier in the function. This will allow us to later move the System
Call Vectored setup that is on the top level into the
POWERPC_EXCP_SYSCALL_VECTORED code block.

This patch also moves the verification for when 'excp' does not have
an address associated with it. We now bail a little earlier when that
is the case. This should not cause any visible effects.

Signed-off-by: Fabiano Rosas <farosas@linux.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20211229165751.3774248-4-farosas@linux.ibm.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
target/ppc/excp_helper.c