ppc/vhyp: reset exception state when handling vhyp hcall
commit2c71b4f6049ef1ed8c75bce7091102be7209a473
authorNicholas Piggin <npiggin@gmail.com>
Tue, 8 Aug 2023 04:19:43 +0000 (8 14:19 +1000)
committerCédric Le Goater <clg@kaod.org>
Wed, 6 Sep 2023 09:19:33 +0000 (6 11:19 +0200)
tree9ae15dfc09d0bd2ceb0145aafec08318ce1ba535
parent17f826af864a253a388ad1f2e21bdc82b67dd83c
ppc/vhyp: reset exception state when handling vhyp hcall

Convention is to reset the exception_index and error_code after handling
an interrupt. The vhyp hcall handler fails to do this. This does not
appear to have ill effects because cpu_handle_exception() clears
exception_index later, but it is fragile and inconsistent. Reset the
exception state after handling vhyp hcall like other handlers.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
target/ppc/excp_helper.c