get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 812156,
    "url": "http://patchwork.ozlabs.org/api/patches/812156/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/1505054255-2990-2-git-send-email-mark.cave-ayland@ilande.co.uk/",
    "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": "<1505054255-2990-2-git-send-email-mark.cave-ayland@ilande.co.uk>",
    "list_archive_url": null,
    "date": "2017-09-10T14:37:32",
    "name": "[1/4] ppc: change CPUPPCState access_type from int to uint8_t",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "9e465dc0381bfd047c26582ecbd04b72cafbb7df",
    "submitter": {
        "id": 12451,
        "url": "http://patchwork.ozlabs.org/api/people/12451/?format=api",
        "name": "Mark Cave-Ayland",
        "email": "mark.cave-ayland@ilande.co.uk"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/1505054255-2990-2-git-send-email-mark.cave-ayland@ilande.co.uk/mbox/",
    "series": [
        {
            "id": 2404,
            "url": "http://patchwork.ozlabs.org/api/series/2404/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=2404",
            "date": "2017-09-10T14:37:33",
            "name": "ppc: migration fixes for TCG",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/2404/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/812156/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/812156/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@bilbo.ozlabs.org",
        "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xqv1J6fpmz9s7M\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 11 Sep 2017 00:43:00 +1000 (AEST)",
            "from localhost ([::1]:53223 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dr3Rr-0002iO-2a\n\tfor incoming@patchwork.ozlabs.org; Sun, 10 Sep 2017 10:42:59 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:45003)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <mark.cave-ayland@ilande.co.uk>) id 1dr3N2-0007dT-PQ\n\tfor qemu-devel@nongnu.org; Sun, 10 Sep 2017 10:38:02 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <mark.cave-ayland@ilande.co.uk>) id 1dr3Mz-0000UL-Mj\n\tfor qemu-devel@nongnu.org; Sun, 10 Sep 2017 10:38:00 -0400",
            "from chuckie.co.uk ([82.165.15.123]:60551\n\thelo=s16892447.onlinehome-server.info)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <mark.cave-ayland@ilande.co.uk>)\n\tid 1dr3Mz-0000Oy-GB; Sun, 10 Sep 2017 10:37:57 -0400",
            "from host109-147-184-220.range109-147.btcentralplus.com\n\t([109.147.184.220] helo=kentang.home)\n\tby s16892447.onlinehome-server.info with esmtpsa\n\t(TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76)\n\t(envelope-from <mark.cave-ayland@ilande.co.uk>)\n\tid 1dr3Ms-00066v-Dv; Sun, 10 Sep 2017 15:37:51 +0100"
        ],
        "From": "Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>",
        "To": "qemu-devel@nongnu.org, qemu-ppc@nongnu.org, david@gibson.dropbear.id.au, \n\taik@ozlabs.ru, lvivier@redhat.com",
        "Date": "Sun, 10 Sep 2017 15:37:32 +0100",
        "Message-Id": "<1505054255-2990-2-git-send-email-mark.cave-ayland@ilande.co.uk>",
        "X-Mailer": "git-send-email 1.7.10.4",
        "In-Reply-To": "<1505054255-2990-1-git-send-email-mark.cave-ayland@ilande.co.uk>",
        "References": "<1505054255-2990-1-git-send-email-mark.cave-ayland@ilande.co.uk>",
        "X-SA-Exim-Connect-IP": "109.147.184.220",
        "X-SA-Exim-Mail-From": "mark.cave-ayland@ilande.co.uk",
        "X-SA-Exim-Version": "4.2.1 (built Sun, 08 Jan 2012 02:45:44 +0000)",
        "X-SA-Exim-Scanned": "Yes (on s16892447.onlinehome-server.info)",
        "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 3.x [fuzzy]",
        "X-Received-From": "82.165.15.123",
        "Subject": "[Qemu-devel] [PATCH 1/4] ppc: change CPUPPCState access_type from\n\tint to uint8_t",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "<qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<http://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\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"
    },
    "content": "This change was suggested by Alexey in advance of a subsequent commit which\nadds access_type into vmstate_ppc_cpu.\n\nSigned-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>\n---\n target/ppc/cpu.h     |    4 ++--\n target/ppc/machine.c |    4 +++-\n 2 files changed, 5 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h\nindex 12f0949..59d1656 100644\n--- a/target/ppc/cpu.h\n+++ b/target/ppc/cpu.h\n@@ -1010,8 +1010,8 @@ struct CPUPPCState {\n     /* Next instruction pointer */\n     target_ulong nip;\n \n-    int access_type; /* when a memory exception occurs, the access\n-                        type is stored here */\n+    uint8_t access_type; /* when a memory exception occurs, the access\n+                            type is stored here */\n \n     CPU_COMMON\n \ndiff --git a/target/ppc/machine.c b/target/ppc/machine.c\nindex e36b710..e59049f 100644\n--- a/target/ppc/machine.c\n+++ b/target/ppc/machine.c\n@@ -19,6 +19,7 @@ static int cpu_load_old(QEMUFile *f, void *opaque, int version_id)\n     target_ulong sdr1;\n     uint32_t fpscr;\n     target_ulong xer;\n+    int access_type;\n \n     for (i = 0; i < 32; i++)\n         qemu_get_betls(f, &env->gpr[i]);\n@@ -46,7 +47,8 @@ static int cpu_load_old(QEMUFile *f, void *opaque, int version_id)\n     }\n     qemu_get_be32s(f, &fpscr);\n     env->fpscr = fpscr;\n-    qemu_get_sbe32s(f, &env->access_type);\n+    qemu_get_sbe32s(f, &access_type);\n+    env->access_type = (uint8_t)access_type;\n #if defined(TARGET_PPC64)\n     qemu_get_betls(f, &env->spr[SPR_ASR]);\n     qemu_get_sbe32s(f, &env->slb_nr);\n",
    "prefixes": [
        "1/4"
    ]
}