From patchwork Tue Nov 7 03:03:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 741819 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp1421097wrr; Mon, 6 Nov 2023 19:11:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IFwPHhMCxL2/6vU3BwpYyB3ncci/6SPV3bx8+EPOB63D2a6GG7F3Fb/3/cLtBwHcDUn2FAB X-Received: by 2002:a05:620a:d85:b0:77a:7d01:f281 with SMTP id q5-20020a05620a0d8500b0077a7d01f281mr7313575qkl.62.1699326715296; Mon, 06 Nov 2023 19:11:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699326715; cv=none; d=google.com; s=arc-20160816; b=Y0QdpHTr5y+Alrve7mVuHs3/5rzfa+A6YYwy/0O5olugbDzZqPASkcabGNu5YY8yjd B9sCTGE5Q8UdNWSOOcGCIfuH56BXba5aL0aHzhxZMsgvLLFlRJX+zgTKwwWzvyZ3tQXE Wvray4sPoeY1YpWrfUR3GA7+afCgXbt1heiCpBxDH3Xzlqw/3cWip5bybi7Xn2Z/HNe0 flw33ddTmoqfw6EEA1lZQkO2ooPvEvLQIHl4Z75mSTpUAMbMhQ2fvz787iaRnVeVevFb S1vhVZhCLyPacMLMuw0QyFT5ycHPPPNpGg5T+kO6qyuiz2H9Juj0kh7vnljEfJ9Nbkl0 DZOA== 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=66ApnGauyIOyjoGgrQcp0zpcbmFv1rSgcJfwyoog9aA=; fh=wDljmxUHXfz9MGj2//jPHYRc53BMWF157v8rVKELrf4=; b=asuhgzs3A5oOcfksHvboY2fmNh3XgCp4YijQJwL3h8W0k/DH6bR+TIxXkGQGuvEHLl 0hzXaMgBA2J17QPtuUs23NIpdMSTTaIf0gKEor5EftQprhap7nI5sGDHCK1X37k/4Q+d zVtaPEmGtpJvuOVoF7bwzB/r+mQO8AYlIp9GNuAf+GUAWetyFwBuXVBEaSgxHhiCfkgY 0gq+TqpXQyjEZsrKkm3rRg4cEDBescU81GLHHrAu/5kYdDnwoTqcQ5D2z390vdQrw+e4 OHJ+jopvjBseZHaDP0mx2J697dkMSKmxT2CfRy1vwRlr7ji8wlkrhp7mj+nQWcuONICJ 4FPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E9smyNzu; 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 k11-20020a05620a414b00b0077a4af92713si6370574qko.565.2023.11.06.19.11.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Nov 2023 19:11:55 -0800 (PST) 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=E9smyNzu; 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 1r0CRy-0005yw-9P; Mon, 06 Nov 2023 22:08:22 -0500 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 1r0CRr-0005hK-VG for qemu-devel@nongnu.org; Mon, 06 Nov 2023 22:08:16 -0500 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r0CRj-0001Th-Aq for qemu-devel@nongnu.org; Mon, 06 Nov 2023 22:08:15 -0500 Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-2800c221af2so4894738a91.0 for ; Mon, 06 Nov 2023 19:08:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699326486; x=1699931286; 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=66ApnGauyIOyjoGgrQcp0zpcbmFv1rSgcJfwyoog9aA=; b=E9smyNzu+MMIWhX6sW422iiBI/MKSznPxjEurvYC+Cwzut7kyyCbI7sI+qTYplu4tG 8HntvqAhkYkwmJFZk+MDpEjZSrvsbM7w/zzKrmCv+klEQT576NZR1jfGdLRqsO+GooJ0 pYYbNZk8r/1LKOilH5ghq/DZCS2jvhOqJbO2F+js4VknJUowgzDA72WWpt4FGZjEsi0G 3U9incHDHs+2PBABlJnTn89FSiPKPYko3M1c5ZpuveHcnWo7OlBL+3hhFMURo3T/xy4z H0kpwOTbu9TbAFyeEYNfj4oi21la8HrIv5NClCi0qu/fxqLZ42ogAir85DP4urH0qIVa xsMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699326486; x=1699931286; 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=66ApnGauyIOyjoGgrQcp0zpcbmFv1rSgcJfwyoog9aA=; b=qXFLyS6qlUBRP6IHJrjKZEX2X/TgV79nOktCrTZ/wcA98VQNcycrS2TCpJ4sbTfyW5 DdSXZmvpzkFIKSiNNb2LJOweld0gvvDWIkElfESS8ntZWe8lg7nDiYcgHHLmPjQa+Cu4 noxfAjfVKwxiF5HRVxHp1nuvfF5+lg07W36nRMbiySeieXgGpzkySAGvy++1zU7du3Mm DUiecl1qNBobsxU18NC4BNFfORkmjbUdz8dDMSQQYRC7QdUIdW+dYZ/xduneftOifbyq pWJNU3zIJZvBbCAE3cXhdb+s3M5QtUHtQ5TaPSVn04yas3sIiOG2us5yphdKV9BTvOWg 78EA== X-Gm-Message-State: AOJu0YwdCp7RWQSUlYCAGU5h3QKjt9XnRIEUxfBS8lTsNX7AouP47Ols /MUykCc1krq1+/pdo81VOKmHqjLZElu9UOCPG58= X-Received: by 2002:a17:90a:2a86:b0:27d:4b20:3604 with SMTP id j6-20020a17090a2a8600b0027d4b203604mr22815684pjd.27.1699326485811; Mon, 06 Nov 2023 19:08:05 -0800 (PST) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id 13-20020a17090a004d00b0027782f611d1sm6744883pjb.36.2023.11.06.19.08.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 19:08:05 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Helge Deller Subject: [PULL 77/85] target/hppa: Clear upper bits in mtctl for pa1.x Date: Mon, 6 Nov 2023 19:03:59 -0800 Message-Id: <20231107030407.8979-78-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231107030407.8979-1-richard.henderson@linaro.org> References: <20231107030407.8979-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1035.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 From: Helge Deller Signed-off-by: Helge Deller Signed-off-by: Richard Henderson --- target/hppa/translate.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 9f129a230b..4102f5faf3 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -2060,7 +2060,13 @@ static bool trans_mtctl(DisasContext *ctx, arg_mtctl *a) #ifndef CONFIG_USER_ONLY nullify_over(ctx); - reg = load_gpr(ctx, a->r); + + if (ctx->is_pa20) { + reg = load_gpr(ctx, a->r); + } else { + reg = tcg_temp_new_i64(); + tcg_gen_ext32u_i64(reg, load_gpr(ctx, a->r)); + } switch (ctl) { case CR_IT: