From 8d855c89d1030ddf3d9093d6775fbc338a0b89cb Mon Sep 17 00:00:00 2001 From: Amir Gonnen Date: Thu, 21 Apr 2022 08:16:48 -0700 Subject: target/nios2: Split out helper for eret instruction The implementation of eret will become much more complex with the introduction of shadow registers. [rth: Split out of a larger patch for shadow register sets. Directly exit to the cpu loop from the helper.] Reviewed-by: Peter Maydell Signed-off-by: Amir Gonnen Message-Id: <20220303153906.2024748-3-amir.gonnen@neuroblade.ai> Signed-off-by: Richard Henderson Message-Id: <20220421151735.31996-18-richard.henderson@linaro.org> --- target/nios2/helper.h | 1 + 1 file changed, 1 insertion(+) (limited to 'target/nios2/helper.h') diff --git a/target/nios2/helper.h b/target/nios2/helper.h index a44ecfd..525b6b6 100644 --- a/target/nios2/helper.h +++ b/target/nios2/helper.h @@ -21,6 +21,7 @@ DEF_HELPER_FLAGS_2(raise_exception, TCG_CALL_NO_WG, noreturn, env, i32) #if !defined(CONFIG_USER_ONLY) +DEF_HELPER_3(eret, noreturn, env, i32, i32) DEF_HELPER_2(mmu_write_tlbacc, void, env, i32) DEF_HELPER_2(mmu_write_tlbmisc, void, env, i32) DEF_HELPER_2(mmu_write_pteaddr, void, env, i32) -- cgit v1.1