Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/953999/?format=api
{ "id": 953999, "url": "http://patchwork.ozlabs.org/api/patches/953999/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/1533574847-19294-7-git-send-email-aleksandar.markovic@rt-rk.com/", "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": "<1533574847-19294-7-git-send-email-aleksandar.markovic@rt-rk.com>", "list_archive_url": null, "date": "2018-08-06T16:59:33", "name": "[v7,06/80] target/mips: Add CP0 BadInstrX register", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "21edae66ad2ec45cddf48a3a54ba1ccefbe99fba", "submitter": { "id": 68635, "url": "http://patchwork.ozlabs.org/api/people/68635/?format=api", "name": "Aleksandar Markovic", "email": "aleksandar.markovic@rt-rk.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/1533574847-19294-7-git-send-email-aleksandar.markovic@rt-rk.com/mbox/", "series": [ { "id": 59520, "url": "http://patchwork.ozlabs.org/api/series/59520/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=59520", "date": "2018-08-06T16:59:27", "name": "Add nanoMIPS support to QEMU", "version": 7, "mbox": "http://patchwork.ozlabs.org/series/59520/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/953999/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/953999/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>)", "ozlabs.org;\n\tdmarc=none (p=none dis=none) header.from=rt-rk.com" ], "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 41kkcw6qx5z9ryt\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 7 Aug 2018 03:08:32 +1000 (AEST)", "from localhost ([::1]:35192 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 1fmizd-00078H-Uu\n\tfor incoming@patchwork.ozlabs.org; Mon, 06 Aug 2018 13:08:29 -0400", "from eggs.gnu.org ([2001:4830:134:3::10]:52984)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <aleksandar.markovic@rt-rk.com>) id 1fmiue-00034U-SQ\n\tfor qemu-devel@nongnu.org; Mon, 06 Aug 2018 13:03:21 -0400", "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <aleksandar.markovic@rt-rk.com>) id 1fmiud-0005Z7-R4\n\tfor qemu-devel@nongnu.org; Mon, 06 Aug 2018 13:03:20 -0400", "from mx2.rt-rk.com ([89.216.37.149]:43034 helo=mail.rt-rk.com)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <aleksandar.markovic@rt-rk.com>)\n\tid 1fmiud-0005YB-F6\n\tfor qemu-devel@nongnu.org; Mon, 06 Aug 2018 13:03:19 -0400", "from localhost (localhost [127.0.0.1])\n\tby mail.rt-rk.com (Postfix) with ESMTP id 178C81A20C6;\n\tMon, 6 Aug 2018 19:03:18 +0200 (CEST)", "from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local\n\t[10.10.13.43])\n\tby mail.rt-rk.com (Postfix) with ESMTPSA id E8BCF1A209A;\n\tMon, 6 Aug 2018 19:03:17 +0200 (CEST)" ], "X-Virus-Scanned": "amavisd-new at rt-rk.com", "From": "Aleksandar Markovic <aleksandar.markovic@rt-rk.com>", "To": "qemu-devel@nongnu.org", "Date": "Mon, 6 Aug 2018 18:59:33 +0200", "Message-Id": "<1533574847-19294-7-git-send-email-aleksandar.markovic@rt-rk.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1533574847-19294-1-git-send-email-aleksandar.markovic@rt-rk.com>", "References": "<1533574847-19294-1-git-send-email-aleksandar.markovic@rt-rk.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "quoted-printable", "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 3.x [fuzzy]", "X-Received-From": "89.216.37.149", "Subject": "[Qemu-devel] [PATCH v7 06/80] target/mips: Add CP0 BadInstrX\n\tregister", "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>", "Cc": "peter.maydell@linaro.org, thuth@redhat.com, pburton@wavecomp.com,\n\tsmarkovic@wavecomp.com, riku.voipio@iki.fi,\n\trichard.henderson@linaro.org, laurent@vivier.eu,\n\tarmbru@redhat.com, arikalo@wavecomp.com,\n\tphilippe.mathieu.daude@gmail.com, amarkovic@wavecomp.com,\n\tpjovanovic@wavecomp.com, aurelien@aurel32.net", "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": "From: Stefan Markovic <smarkovic@wavecomp.com>\n\nAdd CP0 BadInstrX register. This register will be used in nanoMIPS.\n\nReviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>\nReviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>\nReviewed-by: Richard Henderson <richard.henderson@linaro.org>\nSigned-off-by: Stefan Markovic <smarkovic@wavecomp.com>\nSigned-off-by: Yongbok Kim <yongbok.kim@mips.com>\nSigned-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>\n---\n target/mips/cpu.h | 1 +\n target/mips/machine.c | 5 +++--\n target/mips/translate.c | 22 +++++++++++++++++++++-\n 3 files changed, 25 insertions(+), 3 deletions(-)", "diff": "diff --git a/target/mips/cpu.h b/target/mips/cpu.h\nindex 77c638c..009202c 100644\n--- a/target/mips/cpu.h\n+++ b/target/mips/cpu.h\n@@ -323,6 +323,7 @@ struct CPUMIPSState {\n target_ulong CP0_BadVAddr;\n uint32_t CP0_BadInstr;\n uint32_t CP0_BadInstrP;\n+ uint32_t CP0_BadInstrX;\n int32_t CP0_Count;\n target_ulong CP0_EntryHi;\n #define CP0EnHi_EHINV 10\ndiff --git a/target/mips/machine.c b/target/mips/machine.c\nindex 20100d5..5ba78ac 100644\n--- a/target/mips/machine.c\n+++ b/target/mips/machine.c\n@@ -212,8 +212,8 @@ const VMStateDescription vmstate_tlb = {\n \n const VMStateDescription vmstate_mips_cpu = {\n .name = \"cpu\",\n- .version_id = 10,\n- .minimum_version_id = 10,\n+ .version_id = 11,\n+ .minimum_version_id = 11,\n .post_load = cpu_post_load,\n .fields = (VMStateField[]) {\n /* Active TC */\n@@ -266,6 +266,7 @@ const VMStateDescription vmstate_mips_cpu = {\n VMSTATE_UINTTL(env.CP0_BadVAddr, MIPSCPU),\n VMSTATE_UINT32(env.CP0_BadInstr, MIPSCPU),\n VMSTATE_UINT32(env.CP0_BadInstrP, MIPSCPU),\n+ VMSTATE_UINT32(env.CP0_BadInstrX, MIPSCPU),\n VMSTATE_INT32(env.CP0_Count, MIPSCPU),\n VMSTATE_UINTTL(env.CP0_EntryHi, MIPSCPU),\n VMSTATE_INT32(env.CP0_Compare, MIPSCPU),\ndiff --git a/target/mips/translate.c b/target/mips/translate.c\nindex d6eccc9..432d1a6 100644\n--- a/target/mips/translate.c\n+++ b/target/mips/translate.c\n@@ -5315,7 +5315,13 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int reg, int sel)\n gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_BadInstrP));\n rn = \"BadInstrP\";\n break;\n- default:\n+ case 3:\n+ CP0_CHECK(ctx->bi);\n+ gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_BadInstrX));\n+ tcg_gen_andi_tl(arg, arg, ~0xffff);\n+ rn = \"BadInstrX\";\n+ break;\n+ default:\n goto cp0_unimplemented;\n }\n break;\n@@ -6006,6 +6012,10 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, int reg, int sel)\n /* ignored */\n rn = \"BadInstrP\";\n break;\n+ case 3:\n+ /* ignored */\n+ rn = \"BadInstrX\";\n+ break;\n default:\n goto cp0_unimplemented;\n }\n@@ -6711,6 +6721,12 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, int reg, int sel)\n gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_BadInstrP));\n rn = \"BadInstrP\";\n break;\n+ case 3:\n+ CP0_CHECK(ctx->bi);\n+ gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_BadInstrX));\n+ tcg_gen_andi_tl(arg, arg, ~0xffff);\n+ rn = \"BadInstrX\";\n+ break;\n default:\n goto cp0_unimplemented;\n }\n@@ -7385,6 +7401,10 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, int reg, int sel)\n /* ignored */\n rn = \"BadInstrP\";\n break;\n+ case 3:\n+ /* ignored */\n+ rn = \"BadInstrX\";\n+ break;\n default:\n goto cp0_unimplemented;\n }\n", "prefixes": [ "v7", "06/80" ] }