From patchwork Fri Nov 3 19:59:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 740715 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp9325wrr; Fri, 3 Nov 2023 13:04:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEB6e7xIpygwo4WL40FnB5bCt7zqNWDvPprMJ0Spd/zmCG5dtt2K6DRjsyz8GcXISXnH+2i X-Received: by 2002:a05:6808:10c4:b0:3b2:9d31:9d25 with SMTP id s4-20020a05680810c400b003b29d319d25mr28497715ois.31.1699041870946; Fri, 03 Nov 2023 13:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699041870; cv=none; d=google.com; s=arc-20160816; b=Y38ZLjZabSzh5WMgQosuF5JDZeb4NzUn+TLaP0L9lnnbv3MsB5oQj7x3IP94WGfd2g RlsfLKjce2hUVzrtcMEC4/yg9s2lfpyQ6j84u9gnmjzsSNnunBduVcvj3aCcqnRw4HzC 12vRrFkV1pbjDWFqeoN1V74ba++zZJ7KXHazOQBIVD/AhH+cCZe3DVlJwnhXbbBTE3Gr EN7rv2PSIbC70SWXQoFpOm1gpUJ+1sTquEn1z1dxYDQUt4L0urNc4Co3BCoFxNRIJ/u9 7SeI5WqlL0oMfS5/jiliiTVB0i5m4dpbZtPPQSci5FQlHTmdJzIn+vmkfUjT4b9suQed EObw== 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=FOqnYMzgaGsmQAv+x6tXhfxA9uZJN4iQTJsdqhjfa28=; fh=Kx2XI2Yx2wBtcq6Uh/oWjWfpY5DZOGguZfb2uQrLFXM=; b=yXWRZGzAE3frL/lLvjkLPU3JWpyKrikjOjQz0Lbx9jZgqJnKW4BwAgvNrGo15vjklb Dz5IMIfHqcu1acQTXjGQKu+qexjh65MBU78TToHGQEBo7r70spn5g7nas1MpUAhk/jKH sxq3QN5YXFP54FUnnrod7SH/AlPIVViJjDbz5M4Hi1+H3OBbbm5R0gu2e7mE9jlaPoTI Bs1WDaEV1O8cAUgaNK7QwevI8dvGzP5ups3i14Ly0noK66I2P+AHXP19hBDf9yNp7V9M omNftcDcILOOapglS1RoOe7psVM0KPBhyvCo+HuudgaSfzQMZi9Oc6o0J50StAGKauwN xvOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XKIVIIeA; 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 y6-20020a05620a44c600b0076ef0da9545si2164229qkp.736.2023.11.03.13.04.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Nov 2023 13:04:30 -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=XKIVIIeA; 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 1qz0Li-0000LB-UC; Fri, 03 Nov 2023 16:00:58 -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 1qz0L3-00089k-5Y for qemu-devel@nongnu.org; Fri, 03 Nov 2023 16:00:18 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qz0Kq-0005Nf-JA for qemu-devel@nongnu.org; Fri, 03 Nov 2023 16:00:11 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-40836ea8cbaso17637465e9.0 for ; Fri, 03 Nov 2023 13:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699041603; x=1699646403; 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=FOqnYMzgaGsmQAv+x6tXhfxA9uZJN4iQTJsdqhjfa28=; b=XKIVIIeAwb/pWmcOfETXO/HY2D3p/WyIr7W/m0acW/mR8ShxDR1FDhErXGAJRThTEJ c9hJdGaso1bHiB6cQiyz5FgDCJwzk9czmAmIR/FcW6zDPA9Y4TpSck5CPlC+MavBa5KP cT/JAsFdWtltqVkF65Sm7y95S6snYkH5LSdG6KenPq0piDjGtnrGg2flJziL87F/ptaR LoCUGmSP4z12jYB0iHOpN2lj7CYqUSmHSl+KGVUUfPqqVQNWQNy7IyS5f4MZbnwNbpQx VcQMF2oeI9urMfki+QdMXekf+EHu20c7nS3vp2UEP5lqMSi5GHO9NCLluagT+Fg4+L2j eKkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699041603; x=1699646403; 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=FOqnYMzgaGsmQAv+x6tXhfxA9uZJN4iQTJsdqhjfa28=; b=Z5s/SQp9vlmajFBF7f8RZQq96lizT+7qqrNnCw6NN6rVm+3K8fWl/SONhEnXwti9+k BXVsl2zrDVVJBdOKESRezXHpfUu3qYX6UC1Ju7vIhOxEsukrSCao+Uzezhv2GpDSX73c 1pU03/TDGa+BDZ3++o+4PZoyfTQrJe4hGlrhFTdBXw7xZVKgKxRcD3RiajfMMssCptto wxfswD6/u8PgyWOF/12csbnuCpe5lfVVXsezRliu4IUycp2Mn/z3069ZF6A+NVsqieZr KmpCQ0IXRAEvIMBd0wEbfFHC3ZRVi93H41azCaL0z3X8mEpDmsCSxVKCIBB1fUFEu3j+ +8Fg== X-Gm-Message-State: AOJu0YyBA2WXCUUCLUc9+mpF5XAZkLE+FkBijQrJs6a6p28l/KBoJn8L xkPHZHwZPF2nYKavss6/thg1dw== X-Received: by 2002:a05:600c:4687:b0:409:5a92:470c with SMTP id p7-20020a05600c468700b004095a92470cmr7452713wmo.13.1699041602815; Fri, 03 Nov 2023 13:00:02 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id bh7-20020a05600c3d0700b00401b242e2e6sm3562227wmb.47.2023.11.03.12.59.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 13:00:00 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 252A965744; Fri, 3 Nov 2023 19:59:57 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Peter Maydell , "Edgar E. Iglesias" , Song Gao , qemu-arm@nongnu.org, =?utf-8?q?Marc-Andr?= =?utf-8?q?=C3=A9_Lureau?= , Wainer dos Santos Moschetta , Weiwei Li , Marcel Apfelbaum , Ilya Leoshkevich , Daniel Henrique Barboza , Yanan Wang , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?C=C3=A9dri?= =?utf-8?q?c_Le_Goater?= , Paolo Bonzini , David Hildenbrand , Brian Cain , qemu-ppc@nongnu.org, Palmer Dabbelt , qemu-riscv@nongnu.org, Eduardo Habkost , =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= , Alistair Francis , Liu Zhiwei , Cleber Rosa , qemu-s390x@nongnu.org, Laurent Vivier , Yoshinori Sato , Nicholas Piggin , Thomas Huth , John Snow , Alexandre Iooss , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Mahmoud Mandour , Daniel Henrique Barboza , Bin Meng , Beraldo Leal , Richard Henderson , Michael Rolnik Subject: [PATCH 05/29] target/arm: hide aliased MIDR from gdbstub Date: Fri, 3 Nov 2023 19:59:32 +0000 Message-Id: <20231103195956.1998255-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231103195956.1998255-1-alex.bennee@linaro.org> References: <20231103195956.1998255-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32b.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=unavailable 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 This is just a constant alias register with the same value as the "other" MIDR so it serves no purpose being presented to gdbstub. Signed-off-by: Alex Bennée --- target/arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/helper.c b/target/arm/helper.c index 104f9378b4..a681bcba62 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -8993,7 +8993,7 @@ void register_cp_regs_for_features(ARMCPU *cpu) .type = ARM_CP_CONST, .resetvalue = cpu->revidr }, }; ARMCPRegInfo id_v8_midr_alias_cp_reginfo = { - .name = "MIDR", .type = ARM_CP_ALIAS | ARM_CP_CONST, + .name = "MIDR", .type = ARM_CP_ALIAS | ARM_CP_CONST | ARM_CP_NO_GDB, .cp = 15, .crn = 0, .crm = 0, .opc1 = 0, .opc2 = 4, .access = PL1_R, .resetvalue = cpu->midr };