Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2230028/?format=api
{ "id": 2230028, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230028/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260429044752.4176397-13-alistair.francis@wdc.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/1.1/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260429044752.4176397-13-alistair.francis@wdc.com>", "date": "2026-04-29T04:47:13", "name": "[PULL,12/51] target/riscv: Expose mo_endian_env()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "1e49457563daa2ba605e415b3238e3fd19ab48f1", "submitter": { "id": 64571, "url": "http://patchwork.ozlabs.org/api/1.1/people/64571/?format=api", "name": "Alistair Francis", "email": "alistair23@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260429044752.4176397-13-alistair.francis@wdc.com/mbox/", "series": [ { "id": 501983, "url": "http://patchwork.ozlabs.org/api/1.1/series/501983/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=501983", "date": "2026-04-29T04:47:05", "name": "[PULL,01/51] hw/riscv/riscv-iommu: Use standard EN_PRI bit for PRI", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/501983/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2230028/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2230028/checks/", "tags": {}, "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=RGXLiU+Q;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g54mk0R92z1yK5\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 14:57:42 +1000 (AEST)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wHwrL-0001co-Nx; Wed, 29 Apr 2026 00:49:15 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <alistair23@gmail.com>)\n id 1wHwrK-0001Zk-8i\n for qemu-devel@nongnu.org; Wed, 29 Apr 2026 00:49:14 -0400", "from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <alistair23@gmail.com>)\n id 1wHwrI-0008N5-Px\n for qemu-devel@nongnu.org; Wed, 29 Apr 2026 00:49:14 -0400", "by mail-pl1-x632.google.com with SMTP id\n d9443c01a7336-2b0afa0210bso55920035ad.2\n for <qemu-devel@nongnu.org>; Tue, 28 Apr 2026 21:49:12 -0700 (PDT)", "from toolbx.alistair23.me ([2403:581e:fdf9:0:6209:4521:6813:45b7])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b988772ae8sm7756145ad.7.2026.04.28.21.49.06\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 28 Apr 2026 21:49:10 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1777438151; x=1778042951; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=cRThZhlDdYDMRAwOPXW2eKuqfgG85s+OsOROYluam24=;\n b=RGXLiU+QBDaXlxfC2bGxsfDSO5a5beiCKg2ysQr7pv5o6G17kNtB5Brz13WaVea2ON\n GWIOEiJHe3t1koYGltm91nsOOxjW+MxYXtwk+qWFViDyQZ1lOvohiFJ3cgPklmAXIawH\n +sbv9tP656MoFpT+wbB3rOX9WhWjGV4m3ysC5twW54EWxg11xosBmm9IWzado2lwXDpF\n 5RA18E8evebyVJf8WAS/0jdTUBZnvFuuLOqhbwp64cRHs/2aBEVkUQ+6VKrS6+Ml+icg\n RxUq6r8ykSDCRjdInIgq0fsgS6ZLe3+Wyj9ct4YvuNveMQg5SQ69x5aWvD5uSszuezJO\n W+IQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777438151; x=1778042951;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=cRThZhlDdYDMRAwOPXW2eKuqfgG85s+OsOROYluam24=;\n b=Tsi04eNxE3JJ/e9wb9X6aWy+XNn79eNIB+2Wf0ZhqBio7nOscdE7K86ArBnrzT7FGA\n nT5fx/zYianQZH8oampuhoxn1QAFwmHmnahfxKcd8vHyns4ds8pVPVK0liqO5DXn9cXF\n YcFo8tWyXFO42flhedpB6dX0RMxKJVLk4xqhSfX/czDdI7G+2Z7hwvfbTOFqA+OdMxWI\n MB9BU2UlYPLzw1fTywuS1Rr+YZgBbSfxWsgZajGXRYQVhnXGAUcRlp2Sp3bQ3eVP5PPL\n 5IVT/6RktCT127osUssvR8TT0rp3RfAggevJ/yaf0XqcNKUHpI42NvryenH2estOzBNA\n ZtyA==", "X-Forwarded-Encrypted": "i=1;\n AFNElJ9H2lm9fV3blX0eHoJS2bAEQhXHpkli6ic+EstUG42h6j/4Hu9A4BOvvsSvZ8132/acWNfz0ULAyO+3@nongnu.org", "X-Gm-Message-State": "AOJu0YxAX9/T4qG0fNXOvmnkby+clwdFDr3043Rg5u0lnSZCDClIhQIw\n 61MLfGjQsK1V8AMB9uXdnhQ3B2GY90iFnX8wSlo3MO42Pe0zy/BDEbAb", "X-Gm-Gg": "AeBDieu9z8ntS5QsuXpOFcR6BgJBXOtTkex81gC4p7VjhwddC7n9oJceaIqsGhmW5m7\n Nf5h/Ba/5K0tl3hBkMBA8Le06STNnRLgZJQcdgJmWG3tWkybFz+cUbmohDR3RMJi943wLXwV4Te\n QVlxwOTa4xEl5I1v4BOw/mUmo9BlwGPAMIVZM72J27HrWHhr7bx0YdB4uBPLvBlgF5avft94ewG\n gQLr2FiMyaSKfRinrlaqqyw/G9w0oiW6RSlMFObouDhQvs9pQysqFGbijchKAU60bDt9VFAYkEF\n UfBntUKrFP89Gmjj1bqjTNo4MdZ7oSs+yBtguhSvffYkuc4IH0+DWd7c8A+VLJrTH0pkQ9AAbjO\n Zo+VhSA73bqgMNee18PQ3Fu6HqxWKRRbOg0yotfhVuTnIwuKfaF0lyQTenrCyrAkpQRQllBiDnw\n A2WLGv1RnwLarhE1ltp2X33bGZVK8PkCUjcStIuoY8o5X//G2fFsY4", "X-Received": "by 2002:a17:902:8b88:b0:2b7:86be:7673 with SMTP id\n d9443c01a7336-2b9872f8691mr15236545ad.6.1777438151302;\n Tue, 28 Apr 2026 21:49:11 -0700 (PDT)", "From": "alistair23@gmail.com", "X-Google-Original-From": "alistair.francis@wdc.com", "To": "palmer@dabbelt.com, liwei1518@gmail.com, daniel.barboza@oss.qualcomm.com,\n zhiwei_liu@linux.alibaba.com, chao.liu.zevorn@gmail.com,\n qemu-riscv@nongnu.org, qemu-devel@nongnu.org", "Cc": "alistair23@gmail.com,\n =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n Alistair Francis <alistair.francis@wdc.com>", "Subject": "[PULL 12/51] target/riscv: Expose mo_endian_env()", "Date": "Wed, 29 Apr 2026 14:47:13 +1000", "Message-ID": "<20260429044752.4176397-13-alistair.francis@wdc.com>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260429044752.4176397-1-alistair.francis@wdc.com>", "References": "<20260429044752.4176397-1-alistair.francis@wdc.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=2607:f8b0:4864:20::632;\n envelope-from=alistair23@gmail.com; helo=mail-pl1-x632.google.com", "X-Spam_score_int": "-17", "X-Spam_score": "-1.8", "X-Spam_bar": "-", "X-Spam_report": "(-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n 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": "qemu development <qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "From: Philippe Mathieu-Daudé <philmd@linaro.org>\n\nMove mo_endian_env() definition to \"internals.h\" for re-use.\nDo not restrict to system emulation only because this will\nalso be used by user emulation code.\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\nReviewed-by: Alistair Francis <alistair.francis@wdc.com>\nMessage-ID: <20260318103122.97244-10-philmd@linaro.org>\nSigned-off-by: Alistair Francis <alistair.francis@wdc.com>\n---\n target/riscv/internals.h | 12 ++++++++++++\n target/riscv/op_helper.c | 14 --------------\n 2 files changed, 12 insertions(+), 14 deletions(-)", "diff": "diff --git a/target/riscv/internals.h b/target/riscv/internals.h\nindex 35b923c4bf..860c47732b 100644\n--- a/target/riscv/internals.h\n+++ b/target/riscv/internals.h\n@@ -62,6 +62,18 @@ static inline bool mmuidx_2stage(int mmu_idx)\n return mmu_idx & MMU_2STAGE_BIT;\n }\n \n+static inline MemOp mo_endian_env(CPURISCVState *env)\n+{\n+ /*\n+ * A couple of bits in MSTATUS set the endianness:\n+ * - MSTATUS_UBE (User-mode),\n+ * - MSTATUS_SBE (Supervisor-mode),\n+ * - MSTATUS_MBE (Machine-mode)\n+ * but we don't implement that yet.\n+ */\n+ return MO_TE;\n+}\n+\n /* share data between vector helpers and decode code */\n FIELD(VDATA, VM, 0, 1)\n FIELD(VDATA, LMUL, 1, 3)\ndiff --git a/target/riscv/op_helper.c b/target/riscv/op_helper.c\nindex 6ccc127c30..dde40a5549 100644\n--- a/target/riscv/op_helper.c\n+++ b/target/riscv/op_helper.c\n@@ -28,20 +28,6 @@\n #include \"exec/tlb-flags.h\"\n #include \"trace.h\"\n \n-#ifndef CONFIG_USER_ONLY\n-static inline MemOp mo_endian_env(CPURISCVState *env)\n-{\n- /*\n- * A couple of bits in MSTATUS set the endianness:\n- * - MSTATUS_UBE (User-mode),\n- * - MSTATUS_SBE (Supervisor-mode),\n- * - MSTATUS_MBE (Machine-mode)\n- * but we don't implement that yet.\n- */\n- return MO_TE;\n-}\n-#endif\n-\n /* Exceptions processing helpers */\n G_NORETURN void riscv_raise_exception(CPURISCVState *env,\n RISCVException exception,\n", "prefixes": [ "PULL", "12/51" ] }