From patchwork Fri Oct 20 20:43:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 736350 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp504128wrl; Fri, 20 Oct 2023 13:55:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGuHVRy38O86AUI2YEvcj+2H402ojQLR3aaKigrily5X/tr0XV0C/pab+9ncLpBWBlxnRxt X-Received: by 2002:a05:6214:1c0f:b0:66d:50a8:2439 with SMTP id u15-20020a0562141c0f00b0066d50a82439mr3889277qvc.23.1697835359765; Fri, 20 Oct 2023 13:55:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697835359; cv=none; d=google.com; s=arc-20160816; b=M1q6FcNKCrV0HGBULn8ys2ZoPMLrp8vYXDSW76k0bywlU3Ngl4p1xLYN/1FZnI1qHI Xtgg6BVtZV1KFrWIINs4R76dSYDEeqmFWdsTH0jhG3byfV2I75jMxd29xfuIV3aVCoqd svT7tW8DHD95EK8U5soWSCnVrMYUksit9rB4LFjRwZ7Epwp16cJDGB9WcQXyMzuwF2qF C6Mm9UTTf8yH/BxBKe1T+YzmSCXcXULEB15FZ3TSk1lmlU/IC+r9fui9QWIANZFJXANQ S/cGNe8H63Ga+KMtVzj0UpFGSoLsWcXxaRWzQbKrMPl0gud8QJBt34M1rcFQFZZTD2/J K+og== 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=5v0gDw2hca7aeL8Edx367HZb46Y2K4iTJAYsw/i0ri0=; fh=f2WZoDMBYjCKWIIOoPI+rQtxlv4fmOm4u+dLdQLqpOk=; b=IBqC61rxP7q/qN8+gXdvBstKFxKx2nlkNbBs2Zqmz8vipJDWvCb0UDH7RPKIyGodYP rSvW9fo8TFRy9xIHs0JVwO+v7q0GAYnZrHhWlXgmTVdR8XDbGmrdxX0+z3wBdkM6Md0R lUJIzOeLbPgsy7Uu9o0si94AxaDTRdtSIyrZoAOyeGw6Lv+TNgiITt2luhS6wMYWsSul xMDMip8aBQI3LVJBY6Td7+C3Qi0lfpAsG98miZpSY2aKWPmiyq0UunQRCOohzMnA18nO LvWUxF7isFvZ2hN5eg9wzKIpMdBUI0RBHPRoHSw+b+a1VnG3I/2816lBKak8/2IsOkyB asmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OrRLJ9Ls; 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 kr18-20020a0562142b9200b0065b21846028si2221864qvb.531.2023.10.20.13.55.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Oct 2023 13:55:59 -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=OrRLJ9Ls; 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 1qtwP4-00023p-RA; Fri, 20 Oct 2023 16:47:30 -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 1qtwP3-000234-01 for qemu-devel@nongnu.org; Fri, 20 Oct 2023 16:47:29 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtwP1-0001E6-Ee for qemu-devel@nongnu.org; Fri, 20 Oct 2023 16:47:28 -0400 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-6bd96cfb99cso1114471b3a.2 for ; Fri, 20 Oct 2023 13:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697834846; x=1698439646; 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=5v0gDw2hca7aeL8Edx367HZb46Y2K4iTJAYsw/i0ri0=; b=OrRLJ9LsKsAbcd+zobt+lUH1GAWYJe+V5y059G4e8S8wykP3tW80Sc+47Vff/L/AIw CHNFhFEVDu193ECCWp3hs1aHUcBR40J9Nkldmt1/JFm8wqDyWVOObpZ5dyjeHfYbxB2E +D28kdn1KX2cj3C6uwbNB+5yTMyS4wnI2gHrVFgzBz4j6gPoy9vFkyfcTlfMvBHnnSGk IuOJa3PKfIfIZWAHWzb90qRA5JntQZYDxY++4T331TEa/HBTRGf+BRY+AHGe4tONzZe+ g+8os+0wAmwcJYcsvplveOKAAi6d/sAQAoLCXVIriLBdsE1rHU/xnRyN66KIwKahDfoi OXHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697834846; x=1698439646; 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=5v0gDw2hca7aeL8Edx367HZb46Y2K4iTJAYsw/i0ri0=; b=Ws2xFwYbwgDyC3rdq+IMCLS9jfRgfPlFRItV6R9xBz4y7fC86kPdVUrXkYCxC0Ixyy +LoRM8lG5XTrkiaeWAwAfDaG9PRfBwKkITqbqeLzYiOjuH7ywXOCrfmA6yq6ttkM8EiE LU9AQ3M6lSlfFUjgNFvVMk9Fbl48dMDh2sXwkz2gMevjmrefG7vufOY5grx8En1Y262r b6YUrQsUa/FhJs2EWLVy2qy7tvqM9BEGfue4CQMpTu4ma/Ba4LIQelibgryBCYl72/JC JsL0agXpz+0x9vP1/83lQZeDVJyz9qNcRM17/LVgPdTk4SW+kO5jNcHY+As1TNEA9IOW 94mA== X-Gm-Message-State: AOJu0YxO9j+xGz/UDqRHhDx9lvkMRWZg2Bo0vpXxNATiwqpmofATCUlX 1GGRl/h7lnkT5Se3dqoCt8QhdItgP8w4V4hDJNg= X-Received: by 2002:a05:6a21:3b4a:b0:14c:d494:77c3 with SMTP id zy10-20020a056a213b4a00b0014cd49477c3mr2963136pzb.33.1697834846222; Fri, 20 Oct 2023 13:47:26 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id u7-20020aa78487000000b00694fee1011asm1946775pfn.208.2023.10.20.13.47.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 13:47:25 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de Subject: [PATCH v2 61/65] target/hppa: Return zero for r0 from load_gpr Date: Fri, 20 Oct 2023 13:43:27 -0700 Message-Id: <20231020204331.139847-62-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231020204331.139847-1-richard.henderson@linaro.org> References: <20231020204331.139847-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x434.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 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 Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- target/hppa/translate.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 9b60924057..ce2aff8c4e 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -307,9 +307,7 @@ static void cond_free(DisasCond *cond) static TCGv_i64 load_gpr(DisasContext *ctx, unsigned reg) { if (reg == 0) { - TCGv_i64 t = tcg_temp_new_i64(); - tcg_gen_movi_i64(t, 0); - return t; + return ctx->zero; } else { return cpu_gr[reg]; }