From nobody Tue Feb 10 19:49:44 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1660327893; cv=none; d=zohomail.com; s=zohoarc; b=SrW9jA88xTVE0Uygog2H2BK1GMl4TREZCd4idfr1/PnUj+PaudRhHzj2QbBB5GPa2XBFE3y1Rs6mXFIXG4XNosKGzfYGTxDIJI9I7UKGJ1epWbq0f0F0cmW7Uako31MbVOl7fGhsmJg/ta7EkjDtCYRFxgc2jsKciCFMv5n0Oq4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1660327893; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=3ScK9gYYd7Yu/4MmJJp6WEZrowwZuhBtdiXOVA7xdaE=; b=fKsNjbnweCI6c98rVTQcNxuS4rR0jl4vWagC+nI7M3VJg/43OY23cHZBcL+nqROBmxhBpi+ppDRnUZHHEck1qFthMwb/84ruCdGCSBXVSaQe5rzvr+1pwn6z+5RxiYQtqFlo/98hf8IsUJbogWHHyE77XIX4ff3xuv46qucqgkQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1660327893040105.60633022206866; Fri, 12 Aug 2022 11:11:33 -0700 (PDT) Received: from localhost ([::1]:49372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMZ87-0006g0-K5 for importer@patchew.org; Fri, 12 Aug 2022 14:11:31 -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) 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) 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-Google-Smtp-Source: AA6agR5FUz57CWc/wyvMi7aog0y6I6Pl1FTOT1StYLKvF2dOS58af4EOHjViY1gAekW2WpktSn0m1g== 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) 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 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1660327893739100001 Content-Type: text/plain; charset="utf-8" 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, targe= t_ulong dest); =20 #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) =20 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)); } =20 static inline uint16_t x86_lduw_code(CPUX86State *env, DisasContext *s) --=20 2.34.1