From patchwork Fri Aug 12 18:08:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 596815 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b345:0:0:0:0 with SMTP id w5csp1778223maz; Fri, 12 Aug 2022 11:10:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR4xushdFuyP4bybQjOyz6OAfzFQl1DmbF+sckmNzveXRSjiATLPnJNHx7rXkr30SZlYv45j X-Received: by 2002:ae9:f715:0:b0:6b9:90e7:8f44 with SMTP id s21-20020ae9f715000000b006b990e78f44mr3815473qkg.600.1660327828579; Fri, 12 Aug 2022 11:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660327828; cv=none; d=google.com; s=arc-20160816; b=FtKNfSM+g/Vhqg4aA8UFkO0W/HM1JKZPKDo9bcjDyfRhId3yr1NEFNoGw8cJx1exiQ eLQAAsEt0fvo48akDH3IvgDlq7Nz40nQzMH+FLiJflFzafZrDqJaZubeEZcjEa6MTB7H /2ByWVtRPhykL0Ii4+a7QeOXeeLIER1XvDRDw09RfbvAcRFw7o5b0ZM3E937H5bHlm9/ yuxIYmu5JFro7eLDWFoBINoSaDjEJBV025UED7UYyy1JKt5cFlZKlGB7umQenDuKB5Fb rtu+ff+aCrggJLUbaw5tJ3Y/fS6u1r0DUd6+D7WYQCqcU98U1ut7P4sRadCe3lbq663W ZtCQ== 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=3ScK9gYYd7Yu/4MmJJp6WEZrowwZuhBtdiXOVA7xdaE=; b=Xuq43Ct2uFDcrFfGOp1vvmayL0nAtEBa9UTpXH7ufE1/dn+8sei8u99uD5VHcAZeJu lMJXRDnrFYFq4pFbcmV5603l+6KLoFpxHchCY4D56vU7e72aiyQ+NHjPNIpOHseHMjd+ CC9kwqyaFWb+eQRzP5UNBCXpJCV/Q99sRMk7eTEe4pCzxX/N/xjYqb/AjfNH+30pqnH9 tttuF9NpkuMz3ORUdMIp5k7lULnfC9ChRcZkOWg2b4tNPAx28kIz9rm5sPxrwfhQ744T 9iFwOrG0TGoZzQcfKOQdjVzvC+CZEZzyrhIXS10YfKZ+totUOozFmn0m8jsieHVhPP9W xC5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kkBWTwoB; 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 v16-20020a05620a441000b006b94c6a773fsi2085436qkp.223.2022.08.12.11.10.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Aug 2022 11:10:28 -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=kkBWTwoB; 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]:45342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMZ75-0003v3-Sm for patch@linaro.org; Fri, 12 Aug 2022 14:10:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMZ5F-0003m7-UZ for qemu-devel@nongnu.org; Fri, 12 Aug 2022 14:08:33 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:38736) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMZ5E-0006ZW-5N for qemu-devel@nongnu.org; Fri, 12 Aug 2022 14:08:33 -0400 Received: by mail-pf1-x42d.google.com with SMTP id d20so1586301pfq.5 for ; Fri, 12 Aug 2022 11:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=3ScK9gYYd7Yu/4MmJJp6WEZrowwZuhBtdiXOVA7xdaE=; b=kkBWTwoBOwkVMMHFNJouGD3B7xIvN9OSCSou9+TDK/86tEKfInZ0HSC0pF/j6Mk1NY LvYL9TDISHiNRjHS49Dx0qSQCTCRY86+mYMyz79xzz96EEAjlu0yXswLNOZ/ycGJWz8/ ojC1ZQ5dOIcSlHQ+YDLJpydPYASpe9/GE0mywWreyzx3BwetR65vABnFivMdgpdACQQm F5rBToAbBooixIjh+NB7KMr6D/RTU0UgNzEDjMZjekOGR86w9pAtcnMHPMWjvVpszZVs mApT68C68auAUPUtmPOSHZdMoLg4ahW5nnVJAxqE7osFi69jKpLGylM20P8MFAGebY+5 1dwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=3ScK9gYYd7Yu/4MmJJp6WEZrowwZuhBtdiXOVA7xdaE=; b=KIBls5Kffv4O8uS5FlccD2Gu1Gs86bDViX1Q7KxxyocYfDRroRec/CID+A9A72C+d2 cGhoucbZ0ogdDs8A2/jNjTk1FL1vnOos7pKo6xIxUoubXSD5rdXJwQmreCgedWIAe8Ph MSDkyZBD3stKdVSsAhzPww6T6nMbnEJRNawoyInlPf7xANvmF0iKUJaCWEW3pn0aN5en ZHCepGRqcgnQC4l3X5UtIvbndbHubSEhWKBzaZYQD4IgqXIrxQqCEOSZXPMhjD76LEs9 8mGTs953DAJpGCHmvOOFDaOkaqx+erJ8ANIxHPl7KKMo+17MbYehl2Q6ovmc1sZawZhN 8IHg== X-Gm-Message-State: ACgBeo1rCnKp06AojEzkXxxyQtPXu7/L3xSHl4T+dblXRpGTDTpOG5vR LkRwYDY0d/0EMScpfD9LTcN4YrODRPZiww== X-Received: by 2002:a63:68c1:0:b0:421:a023:f830 with SMTP id d184-20020a6368c1000000b00421a023f830mr3986726pgc.15.1660327710820; Fri, 12 Aug 2022 11:08:30 -0700 (PDT) Received: from stoup.. ([2602:ae:154e:e201:a7aa:1d1d:c857:5500]) by smtp.gmail.com with ESMTPSA id h9-20020a056a00000900b0052dee21fecdsm1914761pfk.77.2022.08.12.11.08.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 11:08:29 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: laurent@vivier.eu, iii@linux.ibm.com, alex.bennee@linaro.org Subject: [PATCH for-7.2 18/21] accel/tcg: Remove translator_ldsw Date: Fri, 12 Aug 2022 11:08:03 -0700 Message-Id: <20220812180806.2128593-19-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220812180806.2128593-1-richard.henderson@linaro.org> References: <20220812180806.2128593-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" The only user can easily use translator_lduw and adjust the type to signed during the return. Signed-off-by: Richard Henderson --- include/exec/translator.h | 1 - target/i386/tcg/translate.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/exec/translator.h b/include/exec/translator.h index 0d0bf3a31e..45b9268ca4 100644 --- a/include/exec/translator.h +++ b/include/exec/translator.h @@ -178,7 +178,6 @@ bool translator_use_goto_tb(DisasContextBase *db, target_ulong dest); #define FOR_EACH_TRANSLATOR_LD(F) \ F(translator_ldub, uint8_t, cpu_ldub_code, /* no swap */) \ - F(translator_ldsw, int16_t, cpu_ldsw_code, bswap16) \ F(translator_lduw, uint16_t, cpu_lduw_code, bswap16) \ F(translator_ldl, uint32_t, cpu_ldl_code, bswap32) \ F(translator_ldq, uint64_t, cpu_ldq_code, bswap64) diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c index b7972f0ff5..a23417d058 100644 --- a/target/i386/tcg/translate.c +++ b/target/i386/tcg/translate.c @@ -2033,7 +2033,7 @@ static inline uint8_t x86_ldub_code(CPUX86State *env, DisasContext *s) static inline int16_t x86_ldsw_code(CPUX86State *env, DisasContext *s) { - return translator_ldsw(env, &s->base, advance_pc(env, s, 2)); + return translator_lduw(env, &s->base, advance_pc(env, s, 2)); } static inline uint16_t x86_lduw_code(CPUX86State *env, DisasContext *s)