From patchwork Fri Aug 19 03:26:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 598481 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:4388:0:0:0:0 with SMTP id w8csp1066984mae; Thu, 18 Aug 2022 20:36:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR6jFTpEbMc/l+ywA6zyl+fJGnL01W/hbpvTyXSEyVYtEjMryPB0bMv6BVTcjPOLHiLc6p7f X-Received: by 2002:a05:6214:d07:b0:476:c32f:f4f4 with SMTP id 7-20020a0562140d0700b00476c32ff4f4mr4986501qvh.11.1660880213566; Thu, 18 Aug 2022 20:36:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660880213; cv=none; d=google.com; s=arc-20160816; b=sGiW7+cU9ARdQdgYizqMq6y7k7Yj6DAPwQdJHuyruCdX2UzK9/g0houPRX6pw+eGiy 3DYGJ7dmlZuMB0o44golJh/YaY/CChmlNnxjKQN758j07zkz8gjvk8GyMpMQD37w/Pb/ bqxVU4oQzQrJnJggTkiLW79/pGlnuwTWUZ0lhromnO+ret/MutkFgxAIR50s+NV6wp8U vaqtb7mjr5Fax5E00aHCoIAQVHlPiLrmCnnic9TlBbjZ6mflatYV4dIjDO9JoYjL/NE9 ugP9MAKpAGL/4OMvPs5NQzc3j/ILdN+cHrN70QtWRPuI5i+fUbLGFCN3PtofEWkYgUTp gl7Q== 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=WtwiYaVAFLxnlx6p/hcxlpO+f05p+Ey8ONZXTfgMWyKMpAFRZQ4Zb1lktk3fAPpClX yNydeIZGcht3Nq4rwKY5W+VclomBROgp3dziHvGCXhw0CMQGCvtpBUts7saQKmcpbn27 9CKn6Kodmqbhsqy88hn6i1hAulGj4vOO+ehwUlFn3F0bWsHeVg2g5WRssrmgvDVWmpLN +9i1NQGHr/m0T/kG1sE8rPw7iClVV9/v1D1Yv0JOR6kK32+IzfVTfT/kzUSJ2pz1Nv9A kg4aHOYDy0aFGVjihOB23zQAw58rCY3fmDYB4k8apEBxm2VDXTGQWbZtLy3hhY4cZvmk ccLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QUuAvuDf; 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 e10-20020a0562141d0a00b004771bd99c0csi1606677qvd.451.2022.08.18.20.36.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Aug 2022 20:36:53 -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=QUuAvuDf; 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]:42134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOsoX-0001uu-0Y for patch@linaro.org; Thu, 18 Aug 2022 23:36:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOseb-000254-7x for qemu-devel@nongnu.org; Thu, 18 Aug 2022 23:26:37 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:38438) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oOseZ-0002mF-Jo for qemu-devel@nongnu.org; Thu, 18 Aug 2022 23:26:36 -0400 Received: by mail-pj1-x1034.google.com with SMTP id s31-20020a17090a2f2200b001faaf9d92easo6400946pjd.3 for ; Thu, 18 Aug 2022 20:26:35 -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=QUuAvuDfIo1lhfeSCjLJibqLY4hZ4JHe5xVS4cGpPIdkyMi/VffKf+Zr3YCP+bPDWf nxB67Wr96U6DlARhKO0e08yXn3GrVIqiNZrk3rhfCCNd3GoMOsYkQcyBcwQj3Kba+rA5 xEt/tHXSv9kOzyJGGikYN+D5HEhP/z2NBtfedKWBhS14kfE4xEVDHdakNtW0ZV7lJ4yV fgYetQRqChlhVs4hYwWDuLfmQ9swWWh83VDELrII+dkaq81l3t8kFxlEN60loA5J29dN leFNi84mmNEo9j3eB6j8YD2MtFfZL9XVjAt6DinyIAqnHy876B/WXVj1uhCxGU/kFpCG CNeg== 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=AQRINMvNxZcuyfdeU5UypfWfWVDQnihomOZIQsXjPS3VnBmS/fdCWWyTMyWdKwALQN C9LbB+pka8ll/gFIASLYYiZ8lv9W/SHQMxlk8GqoJZPZi50Zb+fQF08pdDUAcS45p3sz B0bgwfOZh6juK7tw6lgUjITz8moL8khnqtJbHFYqFavBKGUvfIeLJLdnmELZUgbMgJIK 3Z3ev/Q2SUHB5QuzFCT2V/7eCzKYc0UrRLbfjKLFd7FURt5G0CgXHmokF9IAUtKq5VYg 8N4ZLnaiKDEHbQQ13dlqg1L6quntXXYHS8hY/Jk0SSmdlZR2TzsgCEn+qfS/FRKhu4IA C6pg== X-Gm-Message-State: ACgBeo2Ny8LtqWMG6C1Xqa+OsU1dTse2ej40Xwd3Hm6ydPxqqcxEnOyk XKYQiH+zLNbWXVWkPWusYDuiItZ0qCQXGA== X-Received: by 2002:a17:90a:5b:b0:1fa:b78b:ad73 with SMTP id 27-20020a17090a005b00b001fab78bad73mr6270814pjb.107.1660879594243; Thu, 18 Aug 2022 20:26:34 -0700 (PDT) Received: from stoup.. ([2602:47:d49d:ec01:bbf3:9914:aa9c:3b4e]) by smtp.gmail.com with ESMTPSA id g184-20020a6252c1000000b00535d19c46d7sm2199904pfb.203.2022.08.18.20.26.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 20:26:33 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: laurent@vivier.eu, iii@linux.ibm.com, dramforever@live.com, alistair.francis@wdc.com, alex.bennee@linaro.org Subject: [PATCH v6 15/21] accel/tcg: Remove translator_ldsw Date: Thu, 18 Aug 2022 20:26:09 -0700 Message-Id: <20220819032615.884847-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220819032615.884847-1-richard.henderson@linaro.org> References: <20220819032615.884847-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.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 Reviewed-by: Alistair Francis --- 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)