Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1ofCrC-0003bm-EG for mharc-qemu-riscv@gnu.org; Mon, 03 Oct 2022 00:15:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofCr3-0003XE-5f for qemu-riscv@nongnu.org; Mon, 03 Oct 2022 00:15:03 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:45588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofCqz-0006TE-QZ for qemu-riscv@nongnu.org; Mon, 03 Oct 2022 00:14:55 -0400 Received: by mail-pl1-x62c.google.com with SMTP id u24so1672210plq.12 for ; Sun, 02 Oct 2022 21:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=F7tdRk4Qrtb9mSNRqDP+OGNI6gDixPQRApuBKw62yjM=; b=Hh2GOPWc4NUsj6Of/i3k9A3sZXpfOPPxjE8KvEN64dNxuvde9B7vg7hZBNx/nPRV6j n/1hLLeIhZ8DDin+Pfbh+4+SR9hj19UyRraloquFS1J2Wi0OwDzRiN20kIt89eaTSOva /b/TGiBqhcpeZ4AEufZvcaUnfQ2HOC6IOHhw9Q7k0XbTgIdCVTXcGFetldmXuZbGmDf/ qKmGeZUxl2MFjoq+uue1kw6Vvu4aM7L9lYyqFeRR4VfLv6pSozS00lLc2MvUkyyvZNa1 dObfJoY2asz4a5hpa6dUT7h4pl/l/R4kyQE/Cnpfp7sz0zZIZEzllc7GekLQRhpFZbbg LISQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=F7tdRk4Qrtb9mSNRqDP+OGNI6gDixPQRApuBKw62yjM=; b=P0xpNJhrBZpFlcMgMhBjuaO1bYhPt7U2G3hIItcgPA/ULr2TLRTo6glRXMV/rtBstJ R28FmLVbxQNqOyiY9UkCVWTe2n9Fjao8grvoefwWUL81WuVR4jHvyuC5JApbObyrC8Xb PeS6qj+2YIwn729G9RQkC+eGs0hWQy1ELVg1Cx8sTDSWn/pJvRrXJC8+E4E4jHk0Ej07 1Rbqx50cf6Ok+3+PwzeWY0hYlzvlkGp/zEbl0MwKo2h3rhEPx0fcn8GmXXsmPHZRKP1A JtKpp0q5cf9Egaxfr0FUP89M/xGKhHOX/+eFYgeGSGt2TrO1UFp4SyCA3pcmnJQyjgPy 5SHA== X-Gm-Message-State: ACrzQf2qBBy5srOLjEOHidVnaJklEPZT0oTKZJjMqgtrb5Xsuh6AjKYm fCY/6ifCs43j3sHK7QG0RlxSFg== X-Google-Smtp-Source: AMsMyM4YECLzCPHM/GZC2uYllDhomQ2/NGzFQGs3GqnK4bPixJKuBD8s3X8vg9nYgszB0P4+z0itaw== X-Received: by 2002:a17:902:7c8f:b0:176:cdd8:7258 with SMTP id y15-20020a1709027c8f00b00176cdd87258mr19534594pll.49.1664770491323; Sun, 02 Oct 2022 21:14:51 -0700 (PDT) Received: from hsinchu25.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id d12-20020a170902cecc00b0017732e4003bsm6108596plg.141.2022.10.02.21.14.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Oct 2022 21:14:51 -0700 (PDT) From: Jim Shu To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: Alistair Francis , Bin Meng , Palmer Dabbelt , chigot@adacore.com, Jim Shu Subject: [PATCH v3 0/2] Enhance maximum priority support of PLIC Date: Mon, 3 Oct 2022 04:14:38 +0000 Message-Id: <20221003041440.2320-1-jim.shu@sifive.com> X-Mailer: git-send-email 2.17.1 Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=jim.shu@sifive.com; helo=mail-pl1-x62c.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2022 04:15:04 -0000 This patchset fixes hard-coded maximum priority of interrupt priority register and also changes this register to WARL field to align the PLIC spec. Changelog: v3: * fix opposite of power-of-2 max priority checking expression. v2: * change interrupt priority register to WARL field. Jim Shu (2): hw/intc: sifive_plic: fix hard-coded max priority level hw/intc: sifive_plic: change interrupt priority register to WARL field hw/intc/sifive_plic.c | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) -- 2.17.1