1/* 2 * Power ISA decode for branch instructions 3 * 4 * Copyright IBM Corp. 2021 5 * 6 * Authors: 7 * Daniel Henrique Barboza <danielhb413@gmail.com> 8 * 9 * This work is licensed under the terms of the GNU GPL, version 2 or later. 10 * See the COPYING file in the top-level directory. 11 */ 12 13#if defined(TARGET_PPC64) && !defined(CONFIG_USER_ONLY) 14 15static bool trans_RFEBB(DisasContext *ctx, arg_XL_s *arg) 16{ 17 REQUIRE_INSNS_FLAGS2(ctx, ISA207S); 18 19 translator_io_start(&ctx->base); 20 gen_update_branch_history(ctx, ctx->cia, NULL, BHRB_TYPE_NORECORD); 21 gen_helper_rfebb(tcg_env, cpu_gpr[arg->s]); 22 23 ctx->base.is_jmp = DISAS_CHAIN; 24 25 return true; 26} 27#else 28static bool trans_RFEBB(DisasContext *ctx, arg_XL_s *arg) 29{ 30 gen_invalid(ctx); 31 return true; 32} 33#endif 34