get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2227234/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2227234,
    "url": "http://patchwork.ozlabs.org/api/patches/2227234/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260423100612.27278-4-philmd@linaro.org/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/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": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260423100612.27278-4-philmd@linaro.org>",
    "list_archive_url": null,
    "date": "2026-04-23T10:06:06",
    "name": "[3/9] target/microblaze: Replace translator_ldl_swap() -> translator_ldl_end()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "806e7adc29eeba790ed09ce0498774ee64acfe1d",
    "submitter": {
        "id": 85046,
        "url": "http://patchwork.ozlabs.org/api/people/85046/?format=api",
        "name": "Philippe Mathieu-Daudé",
        "email": "philmd@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260423100612.27278-4-philmd@linaro.org/mbox/",
    "series": [
        {
            "id": 501173,
            "url": "http://patchwork.ozlabs.org/api/series/501173/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=501173",
            "date": "2026-04-23T10:06:03",
            "name": "target/microblaze: Compile it once",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501173/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227234/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227234/checks/",
    "tags": {},
    "related": [],
    "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=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=UYO7C0JM;\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 4g1WzZ0216z1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 20:09:45 +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 1wFqxL-0004VW-Hk; Thu, 23 Apr 2026 06:06:47 -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 <philmd@linaro.org>) id 1wFqxH-00047C-4y\n for qemu-devel@nongnu.org; Thu, 23 Apr 2026 06:06:43 -0400",
            "from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1wFqxB-0003zL-U0\n for qemu-devel@nongnu.org; Thu, 23 Apr 2026 06:06:42 -0400",
            "by mail-wm1-x32f.google.com with SMTP id\n 5b1f17b1804b1-4891f625344so49228855e9.0\n for <qemu-devel@nongnu.org>; Thu, 23 Apr 2026 03:06:37 -0700 (PDT)",
            "from localhost.localdomain (88-187-86-199.subs.proxad.net.\n [88.187.86.199]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48a52583fe7sm217129115e9.13.2026.04.23.03.06.34\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Thu, 23 Apr 2026 03:06:35 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1776938796; x=1777543596; 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=7UoOF+gsk2QgBCVNoHyjKQDd0TRiUYFAye9erOTBjMs=;\n b=UYO7C0JMtsgPT5MsWGX68Znlf/Qx02xV/HbLqDnXrZUhbkszo9DzIom5KVDm/4PbuQ\n OEQOQTr16qUYpl78DGq5RhUpqAZ0izTRz3RPdvWm7MqRtXKx8sr/ySt4upNSbh6G5CGQ\n cBqyg5i5tbUq6eXuD29Db2R+bCjgVtSrklor9lK4+wooQZRkx5YsqLENPXbePpug4DQX\n jK6e+/20q9YeOk33SklyMbKQrqa1zqQqAQU3sfQzCpDY7/mNHuMvIafQDhKhI6pioujV\n NEwg5opUoTbbBQsuZMg71toikshxJV7tAI/I1IG5o9BsqeT9ZUCDnZG3/UELQHcnNwUm\n EmFw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776938796; x=1777543596;\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=7UoOF+gsk2QgBCVNoHyjKQDd0TRiUYFAye9erOTBjMs=;\n b=P42QPnOBatfblpBOYOpArvAa7U+J0cvSUGpqKcuCaagi55D4UpFHTY2w8gdnP57qJK\n QIhSA+tL0Pod3AQZdfmA3A0U05Jsq1GBsAzoJU3OUQ27u1k4JQ+RRHhDmGfM/oLG4Pqd\n HOe746YvTeQHtIIEA7jyyELq+QdnDLP5Qzyzyh1VzQZBx6sWHTqTRNtxld4L2LX7sUb1\n 9zGn61mFhXOSQVuNj3DCYewPfXuee2NNFacoLtxcN0anWIO4s2s0ZvaHVKWgjVoBRzGC\n nhYVveb6bjTm6aX5TVmuGSLYBKbohg71PsyeZVfeQI1OJ34hPPoy44/jczn8EbIGEh0I\n lAFg==",
        "X-Gm-Message-State": "AOJu0Yxnqvy8q4t/pVHI7ClOPNri0nFHPXPmar3429io85U/6Dd74ug6\n eU3ewNJarw9aMtngjWZNHj4dnAWVGuJZ1bHn64SK65z+Vaq9BTI4Na7HkZA1YujX20W7LQAxhZK\n yfs1Wh50=",
        "X-Gm-Gg": "AeBDiesN+mHR75TQ0/ZWNHPS5mj5Jv0kM5psL1janeSdF2/sCfibetMrcazW/5pOaCo\n hkLEj/zi4es3kqDDKcHAokqP7cWignk/1cLf++fXszeEIL3AB25BRahuLvnTvQXYandPyOMbP06\n vZwJ3rd7PR8j2B4a30uFKLyDei9l2WpqWaQ0Oc0WA9apXFOEgsLocQRYuNQuIBd+stVW6sj8YpH\n jy8GQ72AanFDhMuBnqVzX1vexDZFbcMV0uo9Bbkz21X6UUAtdw/agn2Frryw2ZD4alSlzvKBxge\n 9gmOPrAA4lcdNKCSJvxCqd8clJgacpZiksC7iY9ZGwBYRNjZLj36kDdTdkUWekgN1WYcMtd557A\n Phsl7rEZQRzhysd7eCATzFvnSRh3Rx+THkrAKlQgohF6JL6BI8P9XCsdB0Fva2MQVabl5I/XHfb\n VrMFmGW8MFsyM5iBqmgLeDB/t/7NQGPAjp90f03jyg6axAWjP5S98Tbd2qO4V7+IwVuTTIE7nDw\n XV8tFUpwj0=",
        "X-Received": "by 2002:a05:600c:19d3:b0:48a:55ec:c007 with SMTP id\n 5b1f17b1804b1-48a55ecc113mr138275795e9.15.1776938795795;\n Thu, 23 Apr 2026 03:06:35 -0700 (PDT)",
        "From": "=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "\"Edgar E. Iglesias\" <edgar.iglesias@gmail.com>,\n Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>,\n Anton Johansson <anjo@rev.ng>,\n Richard Henderson <richard.henderson@linaro.org>, =?utf-8?q?Philippe_Mathie?=\n\t=?utf-8?q?u-Daud=C3=A9?= <philmd@linaro.org>",
        "Subject": "[PATCH 3/9] target/microblaze: Replace translator_ldl_swap() ->\n translator_ldl_end()",
        "Date": "Thu, 23 Apr 2026 12:06:06 +0200",
        "Message-ID": "<20260423100612.27278-4-philmd@linaro.org>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260423100612.27278-1-philmd@linaro.org>",
        "References": "<20260423100612.27278-1-philmd@linaro.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=2a00:1450:4864:20::32f;\n envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.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,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\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": "In preparation of removing the translator_ld[uw,l,q]() methods,\ninline them for the microblaze targets, using mo_endian(ctx) --\nwhich we introduced in commit 2c9e8ddd7699 -- instead of MO_TE.\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n---\n target/microblaze/cpu.h       | 7 -------\n target/microblaze/translate.c | 4 ++--\n 2 files changed, 2 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/target/microblaze/cpu.h b/target/microblaze/cpu.h\nindex 5765786e6dc..ad5a4a8e7bf 100644\n--- a/target/microblaze/cpu.h\n+++ b/target/microblaze/cpu.h\n@@ -412,13 +412,6 @@ void mb_translate_code(CPUState *cs, TranslationBlock *tb,\n /* Ensure there is no overlap between the two masks. */\n QEMU_BUILD_BUG_ON(MSR_TB_MASK & IFLAGS_TB_MASK);\n \n-static inline bool mb_cpu_is_big_endian(CPUState *cs)\n-{\n-    MicroBlazeCPU *cpu = MICROBLAZE_CPU(cs);\n-\n-    return !cpu->cfg.endi;\n-}\n-\n #if !defined(CONFIG_USER_ONLY)\n bool mb_cpu_tlb_fill(CPUState *cs, vaddr address, int size,\n                      MMUAccessType access_type, int mmu_idx,\ndiff --git a/target/microblaze/translate.c b/target/microblaze/translate.c\nindex 5e8bb4ed77b..af6a30b7760 100644\n--- a/target/microblaze/translate.c\n+++ b/target/microblaze/translate.c\n@@ -1646,8 +1646,8 @@ static void mb_tr_translate_insn(DisasContextBase *dcb, CPUState *cs)\n \n     dc->tb_flags_to_set = 0;\n \n-    ir = translator_ldl_swap(cpu_env(cs), &dc->base, dc->base.pc_next,\n-                             mb_cpu_is_big_endian(cs) != TARGET_BIG_ENDIAN);\n+    ir = translator_lduw_end(cpu_env(cs), &dc->base, dc->base.pc_next,\n+                             mo_endian(dc));\n     if (!decode(dc, ir)) {\n         trap_illegal(dc, true);\n     }\n",
    "prefixes": [
        "3/9"
    ]
}