From patchwork Sat Jul 2 06:02:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 586524 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5036:0:0:0:0 with SMTP id e22csp2073832mab; Fri, 1 Jul 2022 23:04:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1srGmw+gpVv17nouTzX5R6XV20G2StdtZBl2bVgvUdNF049w5jASP3t2pTSVa22Ezz04W5V X-Received: by 2002:a81:9191:0:b0:317:8350:b6a8 with SMTP id i139-20020a819191000000b003178350b6a8mr20861343ywg.193.1656741864438; Fri, 01 Jul 2022 23:04:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656741864; cv=none; d=google.com; s=arc-20160816; b=cxcbOEzD4/AOH9aIE9eG5EYcMaDlq6IYUj/nKjwU56K83MBGOr4zigwNry3aUTRnOb VbMTBd4cPnBsvXENIeCJztSVO4xJao8+G82x3KNwqFsqtquXfUu5wrr1ZveefZz/5L1f eazg/HYo1rZBIGwikj9DoFNLM+5N+G+qKzobIHFpXnMoeVTGDDkQ96rcCft98uEwoIm0 ++tfAyPKIrPsYXGsmQZAzN2HC8NSdB/UVHibgGXXmL0qFv//z1qDuC2dW0EZp51ROX1+ SOGQGEpqPP/vq7zFFYJlVc/3OS017k1N9TIZptNWM2BzWFNfiBrvCKV5b5TmZ0VaARIW ORJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RpjQ/jx+Qxs41kvoM5hWq5FpDDhEEkw+sqWhzkGXZNw=; b=VPhask5oGsiwBWkHeDYl+qnhodNMdTOadfTHfT1IjgFvUl6zHIpA7h9V5GIQfdPQla jKnG4ysAfw32Y1hCuQGKbCjHFAh49LM49IU37CCtJRRPFhdhDf+pIEK4fjohdJ2vQ4C5 DACC+OV3lzkg3/X11yOLX2Sdcwil2hrkBDHJcvYzbNU4wyQB4aLgpjJK+/1wqgssRb8q kWIRxqd7f6BdG6s2xyFYJrDAfcBDGlH0tXH7+niGFhCLXt7IdKc6u7LnGBw01vOvp6Un OzsBevz0AZ2ml3RmBGmIcLc3DFt6nfd4YOsIT8rRcfmFz8k4o3umng/EvrpZ2kNUBzbW I84A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RZvsolZ2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f74-20020a25384d000000b0066d56461987si13498081yba.122.2022.07.01.23.04.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Jul 2022 23:04:24 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RZvsolZ2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7WEx-000302-Tk for patch@linaro.org; Sat, 02 Jul 2022 02:04:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7WDI-0002pZ-Th for qemu-devel@nongnu.org; Sat, 02 Jul 2022 02:02:41 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:38830) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7WDH-0004rF-Ax for qemu-devel@nongnu.org; Sat, 02 Jul 2022 02:02:40 -0400 Received: by mail-pf1-x42d.google.com with SMTP id k9so4302407pfg.5 for ; Fri, 01 Jul 2022 23:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RpjQ/jx+Qxs41kvoM5hWq5FpDDhEEkw+sqWhzkGXZNw=; b=RZvsolZ2xaT39Kt80mhV24Coq/u2JTLoMN06SYRgOqikj25NdCspzn/9lp/k4Uwp/A 1Uk5xHLCU+0HiWseTz+owOQLV3XAnssgK9cryWl2xQLn+Ch08TpcRF8gJiTvHVRaSk6R B28STYvfa8ggWj4u/UmdKnlfcvS8scA9Mip1HWBKUeba97cEJPRAl//WVqQCzVIG3K90 t8bR2+V1zgOfPgJ2cqB1g+B7bz3h3pUCFWlU0A11nXwq1bxYCg/xXJs/PI75oYyZR9V1 FdBWrs4z6fvIUsqnq52JvArvbSmRz7lGjNu2hyR26OYqDKUiuWwhOqHRF2CBENiTAHUT o3mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RpjQ/jx+Qxs41kvoM5hWq5FpDDhEEkw+sqWhzkGXZNw=; b=IlpKDrJrgcbOxwo7ohuVdFb/PHkhcukzFT5pr3gZPrGOPb3YJycZPvPF1A0PYojC1u UufP2i/Ucep9IGd5/rAwIxt5Qidz3qThLywVbPcskUFsPHW0eT0fIHP3L7jmBm0b9E/X JKA4bQAxTjIwdmYo8PuIE2ZUwwIPk0pjLH79TQZwd61kanEROQS43Nl+3O8gohLiK8Yz m0I2PPJsqEe60osCm31QBBh/lg3ORdeI/4WR+jWN+6so0Kl16iiBr6stt/BBNYsQNlWL 0JdgptWZg3CN8uGrojUuBnEGF1I1hXgDBeU93FenqFnKla1qPWEzAYN8ZjyFHjJKmU6b bFCg== X-Gm-Message-State: AJIora8pXDAi/T0I63AcWm/1OWNBxS5Nm4/KwW/dTDg28ShofZn65E1/ yXwrbP4o6kkWu62baAGcaU3fBcijctcdiYnO X-Received: by 2002:a63:1952:0:b0:411:90a3:5853 with SMTP id 18-20020a631952000000b0041190a35853mr13764333pgz.474.1656741757363; Fri, 01 Jul 2022 23:02:37 -0700 (PDT) Received: from stoup.. ([122.255.60.245]) by smtp.gmail.com with ESMTPSA id z2-20020a17090a66c200b001ece55b938asm5232178pjl.32.2022.07.01.23.02.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Jul 2022 23:02:36 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: svens@linux.ibm.com, qemu-s390x@nongnu.org Subject: [PATCH v2 1/4] target/s390x: Remove DISAS_GOTO_TB Date: Sat, 2 Jul 2022 11:32:25 +0530 Message-Id: <20220702060228.420454-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220702060228.420454-1-richard.henderson@linaro.org> References: <20220702060228.420454-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" There is nothing to distinguish this from DISAS_NORETURN. Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand --- target/s390x/tcg/translate.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c index fd2433d625..e38ae9ce09 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -1123,9 +1123,6 @@ typedef struct { exiting the TB. */ #define DISAS_PC_UPDATED DISAS_TARGET_0 -/* We have emitted one or more goto_tb. No fixup required. */ -#define DISAS_GOTO_TB DISAS_TARGET_1 - /* We have updated the PC and CC values. */ #define DISAS_PC_CC_UPDATED DISAS_TARGET_2 @@ -1189,7 +1186,7 @@ static DisasJumpType help_goto_direct(DisasContext *s, uint64_t dest) tcg_gen_goto_tb(0); tcg_gen_movi_i64(psw_addr, dest); tcg_gen_exit_tb(s->base.tb, 0); - return DISAS_GOTO_TB; + return DISAS_NORETURN; } else { tcg_gen_movi_i64(psw_addr, dest); per_branch(s, false); @@ -1258,7 +1255,7 @@ static DisasJumpType help_branch(DisasContext *s, DisasCompare *c, tcg_gen_movi_i64(psw_addr, dest); tcg_gen_exit_tb(s->base.tb, 1); - ret = DISAS_GOTO_TB; + ret = DISAS_NORETURN; } else { /* Fallthru can use goto_tb, but taken branch cannot. */ /* Store taken branch destination before the brcond. This @@ -6634,7 +6631,6 @@ static void s390x_tr_tb_stop(DisasContextBase *dcbase, CPUState *cs) DisasContext *dc = container_of(dcbase, DisasContext, base); switch (dc->base.is_jmp) { - case DISAS_GOTO_TB: case DISAS_NORETURN: break; case DISAS_TOO_MANY: