From 243453c1725545e8a20a2ddff5cd902c68fd3487 Mon Sep 17 00:00:00 2001 From: lizzie Date: Fri, 28 Aug 2026 02:24:39 +0200 Subject: [PATCH] [dynarmic, loong64] fix build error due to new term handlers (#4286) Signed-off-by: lizzie - [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- trivial fix Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4286 Reviewed-by: Maufeat Reviewed-by: MaranBr --- .../src/dynarmic/backend/loongarch64/emit_loongarch64.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dynarmic/src/dynarmic/backend/loongarch64/emit_loongarch64.cpp b/src/dynarmic/src/dynarmic/backend/loongarch64/emit_loongarch64.cpp index d4d8454fce..35b3640a1d 100644 --- a/src/dynarmic/src/dynarmic/backend/loongarch64/emit_loongarch64.cpp +++ b/src/dynarmic/src/dynarmic/backend/loongarch64/emit_loongarch64.cpp @@ -1,6 +1,7 @@ // SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later +#include #include "dynarmic/backend/loongarch64/emit_loongarch64.h" #include "dynarmic/backend/loongarch64/a32_jitstate.h" @@ -95,7 +96,8 @@ EmittedBlockInfo EmitLoongArch64(lagoon_assembler_t& as, IR::Block block, const // TODO: Emit Terminal const auto term = block.GetTerminal(); - const IR::Term::LinkBlock* link_block_term = boost::get(&term); + const IR::Term::LeafTerminal* leaft_term = std::get_if(&term); + const IR::Term::LinkBlock* link_block_term = std::get_if(leaft_term); ASSERT(link_block_term); la_load_immediate64(&as, Xscratch0, link_block_term->next.Value()); la_st_w(&as, Xscratch0, Xstate, static_cast(offsetof(A32JitState, regs) + sizeof(u32) * 15));