From patchwork Thu Nov 2 01:29:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 740388 Delivered-To: patch@linaro.org Received: by 2002:a5d:538f:0:b0:32d:baff:b0ca with SMTP id d15csp595734wrv; Wed, 1 Nov 2023 18:40:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGIq+z3vGE7rfJGO4+sNT7r8/77m7bJ4K/5nF14Fgr0C98M62iu0sijuY6+S3jkZOaD1Zd0 X-Received: by 2002:a1f:2cc9:0:b0:499:dec9:e1a8 with SMTP id s192-20020a1f2cc9000000b00499dec9e1a8mr15418133vks.14.1698889208212; Wed, 01 Nov 2023 18:40:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698889208; cv=none; d=google.com; s=arc-20160816; b=x+Ol+h7QKbxCe4LZqYEtvTkEVtMCL+v/DDXpC6xRrj68MXD4vMeeneXtAJ1Z0sCYYp 0iI++stvb1GKriVRnQmZUm7JDMURUqzLRh8/Oyk8dJjVC9l3ISXQMTXNcw7L84eUqpPH 6ASSZYbjwmcNEqWqN3P1zBSQe2LJmtL+BJ6Qf1MXMLOkjn2ydIhPa3uzeq+y7282dQCK BoFM6l643RsPB/lhlPa2mYxfdzeRaJqXPUxhgprzbTbsL3Utzta6+XYBUWZYtE/ZoobX PhTALRRBu3zWCcB2fqAPEggZTjGB7QhQvySy1g7XlmExxNff44uCuEU6lvviQC1cjTVw MZig== 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=FgvfDwyIoGSK++AEaNdMmfoRCVSVHMXHgiFS4BjrPMw=; fh=AzeAcdP3m8QbCrR9JX5pAsbSbmsQq+UaJF2pdbgiiNs=; b=DO/eRsfHG/HIMAQmSFqrGFgK0GK2o2/v6mHMZQJEW/FBdhxz/WeHHxjl8K6IkL67VX B1kfevjxbipmP9p3D8g8C+Tn5NmvwyaqUDcTBm7z10XRBmW6BbPyaLFLV00sirfmYXuK 5Ce/pA8GXABGrupzcdohOOu8e3CF8HKYhFhSEIJ+zgWhnbTsScJphMD9vMlyXdRQUi9B Mv0l/ZPOUoGJSnQxm6OGAl4I4TUBSrvGGHeTt67sbtPPMUxsUnIgWb6TUxGut2bWWseK RsBZ8l4s/RIqa+M6Iqg2JOv8fjl0NRQqOlqwUiOhhkh1g2alOaDHqE+Tezyom4/JTMoS sR2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RxHVe8Fp; 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 f18-20020ac87f12000000b00418122a226dsi3594353qtk.159.2023.11.01.18.40.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Nov 2023 18:40:08 -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=RxHVe8Fp; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qyMXq-0005nA-TU; Wed, 01 Nov 2023 21:30:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qyMXe-0005cF-GG for qemu-devel@nongnu.org; Wed, 01 Nov 2023 21:30:38 -0400 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qyMXa-0001Xz-Cc for qemu-devel@nongnu.org; Wed, 01 Nov 2023 21:30:37 -0400 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-692c02adeefso466035b3a.3 for ; Wed, 01 Nov 2023 18:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698888633; x=1699493433; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FgvfDwyIoGSK++AEaNdMmfoRCVSVHMXHgiFS4BjrPMw=; b=RxHVe8FpoamB40fRCEiUyFNytX29/prRAhFy+uHJtn35VpdTOaH18X6T0frjK+H0C1 k/QsKA2yy/dbKhXikCj//vf9wpFlZWzVNsorsq5OR7qh1veNdqn0Duk4dSrpGAWCxKTw +kOnW3REZ25z0W25Rn2srCtIk27OhJ0b+F+3AWUvktFisiVDuwX36zvho1zwPRZid9ch 6MldHd5zxJUjKCDw2Km/P+reMQszqpJcepreoWBFMVJspG2tWUsiCP7Ycp1EJ+9cZYJq w54CalV9KzQitPuxOjURwwqIF37FyKI3LPj03P18iP+Cp4KXdXcJX9wHE2k/lXSrUYDt 5JQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698888633; x=1699493433; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FgvfDwyIoGSK++AEaNdMmfoRCVSVHMXHgiFS4BjrPMw=; b=WZoIvPy4EAYOLID0Xh1bdSWASlGS1CXeQjO3I3i0jHCY9hiDZFEwiqAuKxT+epr15B gPxoa2M5UmZGrD6fz7rOOwAoO0TkYW6togSvoKhkYSnOCuK9AlZOz/MmeZh8ljXLqusw SFVWwG5TWJiDh2hUqKZ8WZB7CBkFEwYs0JK+49kuH8L5SfTiJQM3F4FrFtu5H5XAKc4Z DyzHMQvdDT/SWabjOhkjvTtdtvWFqP6ED6Jjqhp2Wvb8mMLldUykV5SoZu/NfKgylX7m g9C5nSzdysVqgjoGd5Euuc+KNHQ08Jk/C4hdEHUZZXhvfs6MtZcopPNTbNjKAUHgnUKT hWBg== X-Gm-Message-State: AOJu0YxGOpetdCOIMCQkQqnDwHPKaGofCo5DIxra0NSqyl4I8eMfWEnv gyITRY2aKR0R7yEDlETonuIwryQcHcV0umsGP/Q= X-Received: by 2002:a05:6a00:138a:b0:68e:3772:4e40 with SMTP id t10-20020a056a00138a00b0068e37724e40mr17728137pfg.3.1698888628817; Wed, 01 Nov 2023 18:30:28 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id r23-20020aa78457000000b006979f70fdd5sm1784191pfn.219.2023.11.01.18.30.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 18:30:28 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v3 13/88] target/hppa: Fix load in do_load_32 Date: Wed, 1 Nov 2023 18:29:01 -0700 Message-Id: <20231102013016.369010-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231102013016.369010-1-richard.henderson@linaro.org> References: <20231102013016.369010-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x432.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-bounces+patch=linaro.org@nongnu.org The destination is TCGv_i32, so use tcg_gen_qemu_ld_i32 not tcg_gen_qemu_ld_reg. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/hppa/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index c8384fccd9..20e44ed528 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -1430,7 +1430,7 @@ static void do_load_32(DisasContext *ctx, TCGv_i32 dest, unsigned rb, form_gva(ctx, &addr, &ofs, rb, rx, scale, disp, sp, modify, ctx->mmu_idx == MMU_PHYS_IDX); - tcg_gen_qemu_ld_reg(dest, addr, ctx->mmu_idx, mop | UNALIGN(ctx)); + tcg_gen_qemu_ld_i32(dest, addr, ctx->mmu_idx, mop | UNALIGN(ctx)); if (modify) { save_gpr(ctx, rb, ofs); }