]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/ppc: Move TCG specific exception handlers to tcg-excp_helper.c
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 27 Jan 2025 10:26:08 +0000 (11:26 +0100)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 11 Mar 2025 12:43:31 +0000 (22:43 +1000)
commit0fc76338fe4f587cfe1f582ef0594b32690b7c48
tree8a714630431a18124f13397b277e5aa293bf50ac
parent215b2ee8f1546ed96a2b3b0f871e18c045317c00
target/ppc: Move TCG specific exception handlers to tcg-excp_helper.c

Move the TCGCPUOps handlers to a new unit: tcg-excp_helper.c,
only built when TCG is selected.

See in target/ppc/cpu_init.c:

    #ifdef CONFIG_TCG
    static const TCGCPUOps ppc_tcg_ops = {
      ...
      .do_unaligned_access = ppc_cpu_do_unaligned_access,
      .do_transaction_failed = ppc_cpu_do_transaction_failed,
      .debug_excp_handler = ppc_cpu_debug_excp_handler,
      .debug_check_breakpoint = ppc_cpu_debug_check_breakpoint,
      .debug_check_watchpoint = ppc_cpu_debug_check_watchpoint,
    };
    #endif /* CONFIG_TCG */

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Message-ID: <20250127102620.39159-5-philmd@linaro.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/excp_helper.c
target/ppc/meson.build
target/ppc/tcg-excp_helper.c [new file with mode: 0644]