Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/807397/?format=api
{ "id": 807397, "url": "http://patchwork.ozlabs.org/api/patches/807397/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1504066360-30128-8-git-send-email-paulus@ozlabs.org/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<1504066360-30128-8-git-send-email-paulus@ozlabs.org>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1504066360-30128-8-git-send-email-paulus@ozlabs.org/", "date": "2017-08-30T04:12:30", "name": "[v3,07/17] powerpc: Don't update CR0 in emulation of popcnt, prty, bpermd instructions", "commit_ref": "5762e08344bd7c5bfc41030f74c4ab6ce6e461d0", "pull_url": null, "state": "accepted", "archived": false, "hash": "64953d477da35f3a3ac81bb7a5faa630ec1250a7", "submitter": { "id": 67079, "url": "http://patchwork.ozlabs.org/api/people/67079/?format=api", "name": "Paul Mackerras", "email": "paulus@ozlabs.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1504066360-30128-8-git-send-email-paulus@ozlabs.org/mbox/", "series": [ { "id": 522, "url": "http://patchwork.ozlabs.org/api/series/522/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=522", "date": "2017-08-30T04:12:25", "name": "powerpc: Do alignment fixups using analyse_instr etc.", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/522/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/807397/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/807397/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "patchwork-incoming@ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Delivered-To": [ "patchwork-incoming@ozlabs.org", "linuxppc-dev@lists.ozlabs.org", "linuxppc-dev@ozlabs.org" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xhssc2F67z9s9Y\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 30 Aug 2017 14:27:00 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xhssc13rWzDqJ9\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 30 Aug 2017 14:27:00 +1000 (AEST)", "from ozlabs.org (bilbo.ozlabs.org [103.22.144.67])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xhsYH1zPbzDqGG\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 30 Aug 2017 14:12:51 +1000 (AEST)", "by ozlabs.org (Postfix)\n\tid 3xhsYH1HLWz9sNc; Wed, 30 Aug 2017 14:12:51 +1000 (AEST)", "from authenticated.ozlabs.org (localhost [127.0.0.1])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPSA id 3xhsYG6s9sz9sQl\n\tfor <linuxppc-dev@ozlabs.org>; Wed, 30 Aug 2017 14:12:50 +1000 (AEST)" ], "Authentication-Results": [ "ozlabs.org; dkim=pass (2048-bit key;\n\tsecure) header.d=ozlabs.org header.i=@ozlabs.org header.b=\"Mcky1U2j\";\n\tdkim-atps=neutral", "lists.ozlabs.org; dkim=pass (2048-bit key;\n\tsecure) header.d=ozlabs.org header.i=@ozlabs.org header.b=\"Mcky1U2j\";\n\tdkim-atps=neutral", "lists.ozlabs.org; dkim=pass (2048-bit key;\n\tsecure) header.d=ozlabs.org header.i=@ozlabs.org header.b=\"Mcky1U2j\"; \n\tdkim-atps=neutral" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; \n\tt=1504066371; bh=hiGdTmDmOvJhscVBIK0z9t4A9BrqLVG4ZCJ5GVP4h0I=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=Mcky1U2jH/leoYyTP7iF9WWvaVDYWpIUQRTfBoXPMAEXvFZtOwJRx+Mjq/UKA1187\n\tFR4Ew77Szhk/RsA+ZtVRe+POsL1ji1GWtrkJ/z2pkkEX59ufaJLnfeLL5TFUPIxwi/\n\tWT4ZG8eFwhbYvZD/l4jWWxjtmYGp+ubsvWVdARydlFniCXap/P+7FwyZu/xmpCyp+/\n\trhITubRl6NeBSwoLfxSuoJ4FtiqKzMAY/ObheQ+9hZFDEx77FA5AjiO8jJ1LzLTgLO\n\tmBquRbJmRr9Zde8lto6f3sZTbIR7gwAbrfzB7VIJLWR8X2Hf+uKCbplhaW6WZwMOzV\n\t/dJV2XshpywGA==", "From": "Paul Mackerras <paulus@ozlabs.org>", "To": "linuxppc-dev@ozlabs.org", "Subject": "[PATCH v3 07/17] powerpc: Don't update CR0 in emulation of popcnt, \n\tprty, bpermd instructions", "Date": "Wed, 30 Aug 2017 14:12:30 +1000", "Message-Id": "<1504066360-30128-8-git-send-email-paulus@ozlabs.org>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1504066360-30128-1-git-send-email-paulus@ozlabs.org>", "References": "<1504066360-30128-1-git-send-email-paulus@ozlabs.org>", "X-BeenThere": "linuxppc-dev@lists.ozlabs.org", "X-Mailman-Version": "2.1.23", "Precedence": "list", "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>", "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>", "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>", "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>", "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org", "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>" }, "content": "The architecture shows the least-significant bit of the instruction\nword as reserved for the popcnt[bwd], prty[wd] and bpermd\ninstructions, that is, these instructions never update CR0.\nTherefore this changes the emulation of these instructions to\nskip the CR0 update.\n\nSigned-off-by: Paul Mackerras <paulus@ozlabs.org>\n---\n arch/powerpc/lib/sstep.c | 12 ++++++------\n 1 file changed, 6 insertions(+), 6 deletions(-)", "diff": "diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c\nindex 522bc7b..114e597 100644\n--- a/arch/powerpc/lib/sstep.c\n+++ b/arch/powerpc/lib/sstep.c\n@@ -1469,7 +1469,7 @@ int analyse_instr(struct instruction_op *op, const struct pt_regs *regs,\n \n \t\tcase 122:\t/* popcntb */\n \t\t\tdo_popcnt(regs, op, regs->gpr[rd], 8);\n-\t\t\tgoto logical_done;\n+\t\t\tgoto logical_done_nocc;\n \n \t\tcase 124:\t/* nor */\n \t\t\top->val = ~(regs->gpr[rd] | regs->gpr[rb]);\n@@ -1477,15 +1477,15 @@ int analyse_instr(struct instruction_op *op, const struct pt_regs *regs,\n \n \t\tcase 154:\t/* prtyw */\n \t\t\tdo_prty(regs, op, regs->gpr[rd], 32);\n-\t\t\tgoto logical_done;\n+\t\t\tgoto logical_done_nocc;\n \n \t\tcase 186:\t/* prtyd */\n \t\t\tdo_prty(regs, op, regs->gpr[rd], 64);\n-\t\t\tgoto logical_done;\n+\t\t\tgoto logical_done_nocc;\n #ifdef CONFIG_PPC64\n \t\tcase 252:\t/* bpermd */\n \t\t\tdo_bpermd(regs, op, regs->gpr[rd], regs->gpr[rb]);\n-\t\t\tgoto logical_done;\n+\t\t\tgoto logical_done_nocc;\n #endif\n \t\tcase 284:\t/* xor */\n \t\t\top->val = ~(regs->gpr[rd] ^ regs->gpr[rb]);\n@@ -1497,7 +1497,7 @@ int analyse_instr(struct instruction_op *op, const struct pt_regs *regs,\n \n \t\tcase 378:\t/* popcntw */\n \t\t\tdo_popcnt(regs, op, regs->gpr[rd], 32);\n-\t\t\tgoto logical_done;\n+\t\t\tgoto logical_done_nocc;\n \n \t\tcase 412:\t/* orc */\n \t\t\top->val = regs->gpr[rd] | ~regs->gpr[rb];\n@@ -1513,7 +1513,7 @@ int analyse_instr(struct instruction_op *op, const struct pt_regs *regs,\n #ifdef CONFIG_PPC64\n \t\tcase 506:\t/* popcntd */\n \t\t\tdo_popcnt(regs, op, regs->gpr[rd], 64);\n-\t\t\tgoto logical_done;\n+\t\t\tgoto logical_done_nocc;\n #endif\n \t\tcase 922:\t/* extsh */\n \t\t\top->val = (signed short) regs->gpr[rd];\n", "prefixes": [ "v3", "07/17" ] }