From patchwork Fri Jan 28 15:30:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 537608 Delivered-To: patch@linaro.org Received: by 2002:adf:f849:0:0:0:0:0 with SMTP id d9csp746615wrq; Fri, 28 Jan 2022 08:19:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTSt7e7Sn7/42aX3nKxs74OKoXaWbzADgVaBz5386l4tJh5RAGMYowHJSTCHFOjfyggk1T X-Received: by 2002:a05:622a:1649:: with SMTP id y9mr5193579qtj.685.1643386785472; Fri, 28 Jan 2022 08:19:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643386785; cv=none; d=google.com; s=arc-20160816; b=Si9XcF0gTg24ZRBavQ3QyREHKQF/giSDQiNBLaBqdYL0bFNdmQk0UpQKmeuKBP+egj /JpuEONjrybP4jomkn4rGq5oSB5tyrfZBjTmBoc5lbhtQuraAKePp/5Ooq/cKAMJ8Rmw NdYCcl3/sDR9CyzWEWYEKUxavDO50iUY5SsnW98A2H20e/Gr4q9pJYSa0Vts5DoS2zld 8t80OzCEVz9hgyJAyKUP+LgqG6R6w3mqMlf8OAdgRiacEnn9EHOxVrsRjQZbwhi+zEPs nz6Ldx/R0VUh20puyecODGXO3FuUdrL12xwF8rJYSJg9bAItKVQxrF+AaAYvasTLaO3I qwjw== 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:to:from :dkim-signature; bh=heH8RpXJ9awSXu4Em9erq2sCHDZu92VPxiANQHMjwHw=; b=idK2re0RD5q78Y06MMTlfXe0FnIOke5UEuxrSk4ZlOzH2GcBNg6iqVFY4O0SLW/6Go OU7V/tHIZoUcCb3nwksK2g/12S1n8/hwOPVgBX0pzfmhS0Qt92wb+8R3AvJU6T33XkBf 793+x2vDOoYpxlm5H/md7ZR5/phSPHxqKpsNjo9v8Bh148H4FpfliRryiEbAaMB1dB4h POEPGKcYD4YoQtuyf5EzExcSm9VZEXdXvHlEjXbWIHdwJ4SNo/jZ5/Rve1gxFy5Jtbf0 N5plMxdJkBN7BsNaHWoH376hugukyOYwnG+jEh3aHtxv5v7YFS+BEMrxPhXLLXxQ/0F8 vFKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tgjurxdB; 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 a10si3297031qtx.765.2022.01.28.08.19.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Jan 2022 08:19:45 -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=tgjurxdB; 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]:36444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nDTyS-0003Q9-Rb for patch@linaro.org; Fri, 28 Jan 2022 11:19:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDTDJ-0002Dd-ND for qemu-devel@nongnu.org; Fri, 28 Jan 2022 10:31:03 -0500 Received: from [2a00:1450:4864:20::42d] (port=41938 helo=mail-wr1-x42d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nDTDE-0006QT-RQ for qemu-devel@nongnu.org; Fri, 28 Jan 2022 10:30:58 -0500 Received: by mail-wr1-x42d.google.com with SMTP id h21so11550015wrb.8 for ; Fri, 28 Jan 2022 07:30:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=heH8RpXJ9awSXu4Em9erq2sCHDZu92VPxiANQHMjwHw=; b=tgjurxdBIJTRQfDF0xbQIotbG51ksdgPd5gbRaOmM2MxNPpPPj4fS7YPYn2HSz8DMJ UH5Kd2Y81HUB1x/55+ES+PVJUSaUBnn1vSLemlFB70W98sIQIiwlCng5mkelcgIeSmla DHX/HEmNusl5b4aTmXoNW6HmJsITpoiD1yhgSNXyBfTKm0dQDOcQtwCYmp5W/0uCfm6a rqQqB62xX0+5ruyfw5uWF/fk33AcIpooi4sMVvSKER4amoJ/PaFLbUt8pR8zUu7+8lyJ k4lrqYnTGi4LITDPrQcVa0BoJQeixNpMcyz+pA3z1vzPeClSxVdJHSK6WoA/hY6vELxz SrHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=heH8RpXJ9awSXu4Em9erq2sCHDZu92VPxiANQHMjwHw=; b=KckKmkUsxgRK59zFP95Aqbbs4Obp7+UPSKHHk9+byldSp9dE0rIuEnyLvTeRlgITy6 7lCXrHmB0oZnpe4hzk4BCe497EIP9eDt+/fYPJZ1pQYXB6lLHUd1GIswcEDsPU7cOeSl 5n2XOIwCLnR0yx4Q6f2vOTdQif00q7c7KwHyasd/BBTSzHiqxNbNFz9/sMGejSmXu/XA t42cq62i0fW029ZvMTqyB0IVn0vdpQJ8z8Jht7RM8o4wjZUafVznXIeGIrNB5qVDqw81 3TFqVN0zLNrtTQcw9fsy1I7nepbYSUAH+Uq3RnzOEeljYt0d7B0fL/WqtsI2EhPICbX3 BSEw== X-Gm-Message-State: AOAM5321IGUq8hU9gNCeq3wfV1FSQ/QdKYpbbaZAkDVrKR/meF5IReUR S11cGyerEQH8K888oTJF2BmMikB7zZt71w== X-Received: by 2002:a5d:6090:: with SMTP id w16mr7476423wrt.476.1643383836621; Fri, 28 Jan 2022 07:30:36 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id j3sm4749485wrb.57.2022.01.28.07.30.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jan 2022 07:30:36 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 23/32] hw/intc/arm_gicv3_its: Sort ITS command list into numeric order Date: Fri, 28 Jan 2022 15:30:00 +0000 Message-Id: <20220128153009.2467560-24-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220128153009.2467560-1-peter.maydell@linaro.org> References: <20220128153009.2467560-1-peter.maydell@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42d (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42d.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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 list of #defines for the ITS command packet numbers is neither in alphabetical nor numeric order. Sort it into numeric order. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-id: 20220122182444.724087-8-peter.maydell@linaro.org --- hw/intc/gicv3_internal.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/intc/gicv3_internal.h b/hw/intc/gicv3_internal.h index 1eeb99035da..5394266aaf4 100644 --- a/hw/intc/gicv3_internal.h +++ b/hw/intc/gicv3_internal.h @@ -314,16 +314,16 @@ FIELD(GITS_TYPER, CIL, 36, 1) #define CMD_MASK 0xff /* ITS Commands */ -#define GITS_CMD_CLEAR 0x04 -#define GITS_CMD_DISCARD 0x0F #define GITS_CMD_INT 0x03 -#define GITS_CMD_MAPC 0x09 +#define GITS_CMD_CLEAR 0x04 +#define GITS_CMD_SYNC 0x05 #define GITS_CMD_MAPD 0x08 -#define GITS_CMD_MAPI 0x0B +#define GITS_CMD_MAPC 0x09 #define GITS_CMD_MAPTI 0x0A +#define GITS_CMD_MAPI 0x0B #define GITS_CMD_INV 0x0C #define GITS_CMD_INVALL 0x0D -#define GITS_CMD_SYNC 0x05 +#define GITS_CMD_DISCARD 0x0F /* MAPC command fields */ #define ICID_LENGTH 16