Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/814710/?format=api
{ "id": 814710, "url": "http://patchwork.ozlabs.org/api/patches/814710/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170917232010.14183-4-f4bug@amsat.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": "<20170917232010.14183-4-f4bug@amsat.org>", "list_archive_url": null, "date": "2017-09-17T23:20:07", "name": "[v3,3/6] mips: split cpu_mips_realize_env() out of cpu_mips_init()", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "ae7871fdb732e22eb69691cba2103a5448d225d3", "submitter": { "id": 70924, "url": "http://patchwork.ozlabs.org/api/people/70924/?format=api", "name": "Philippe Mathieu-Daudé", "email": "f4bug@amsat.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170917232010.14183-4-f4bug@amsat.org/mbox/", "series": [ { "id": 3548, "url": "http://patchwork.ozlabs.org/api/series/3548/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=3548", "date": "2017-09-17T23:20:04", "name": "QOMify MIPS cpu", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/3548/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/814710/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/814710/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\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"N0xgVqoq\"; dkim-atps=neutral" ], "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 3xwQB55CF4z9s7c\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 18 Sep 2017 09:21:17 +1000 (AEST)", "from localhost ([::1]:33962 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 1dtisF-0003NY-Qm\n\tfor incoming@patchwork.ozlabs.org; Sun, 17 Sep 2017 19:21:15 -0400", "from eggs.gnu.org ([2001:4830:134:3::10]:42669)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dtirf-0003LU-5c\n\tfor qemu-devel@nongnu.org; Sun, 17 Sep 2017 19:20:40 -0400", "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dtire-0007ZH-6z\n\tfor qemu-devel@nongnu.org; Sun, 17 Sep 2017 19:20:39 -0400", "from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:38281)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dtird-0007Z1-VE\n\tfor qemu-devel@nongnu.org; Sun, 17 Sep 2017 19:20:38 -0400", "by mail-qt0-x243.google.com with SMTP id f24so4696041qte.5\n\tfor <qemu-devel@nongnu.org>; Sun, 17 Sep 2017 16:20:37 -0700 (PDT)", "from yoga.offpageads.com ([181.93.89.178])\n\tby smtp.gmail.com with ESMTPSA id\n\tz75sm4132114qkb.71.2017.09.17.16.20.34\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 17 Sep 2017 16:20:37 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=V5zYwjOYS3GwmxVgiUFkyCaFtX8CwutxNcwyTMjmhro=;\n\tb=N0xgVqoqbnsN9Iim8I65zF3nhm6cUK/WnZhUc+hbK9lqOwVVkA/26aFH+A4zflpZfo\n\tdTtp/oK1tcArAhwvSgs8jJ4Zgg9M0datZK1TJPCIeXsY64lYhH5EPuvuN2/gHLpAGhT7\n\tXUc98RyOxSymmTyqNC+T2bjLdMz6hVbf7g7ZtzlUipsmYO7EjG/TmSlGCmc2HWwN57jN\n\tqDI/lHXr2VSEB/GQVNSoHbgmX+CW3vDxCb++mJMltP8aV8wqaLYL8oGNI64hJXIyMbMp\n\tWxWB36Z5qIfgbXfdIKOqmzqLKKWs90Q9ZGptW0zOKOsZa3xj7xsU5Gf0W8VtlwL5orG8\n\t2Plw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references:mime-version:content-transfer-encoding;\n\tbh=V5zYwjOYS3GwmxVgiUFkyCaFtX8CwutxNcwyTMjmhro=;\n\tb=jbgbf+ngsDyeYIQveaSdBhVTecYkn4c+dtxmeR7bfcGQspc1aIFWZPi2TT2y5oFqGT\n\tQOuK/Eus1Yl8ytRoI/mT+oRqLUuQxmjF254fteiO6N99lyDHukojH2sI7+NvTE6NkvHI\n\tWsjwXUDk1OAxT3IbNxZ10Jko8h34pj9ub0MHQE+NZv5FfDOE91Ii3XPZ9pgPgyA02hol\n\trIeCPwOA6RDtMNblDUhl/1YVWyLuNsTfrNSDDy+DgdKv5Am7c4RvQwWUe0J9JzuOYcZ7\n\tC7T/0xmGkjg+omOxGXOnXlBcpdNOLF/LBczq/j+CHQo8A7jIHqxs5dF6Y2yxDIS2N4t8\n\tBJ+w==", "X-Gm-Message-State": "AHPjjUjdm7fQs7bvX+5sBjB8JQR/dL6+MJBa7Yr2vrSzEu6FIayTqJJb\n\tTWXb+O/iWen3uQ==", "X-Google-Smtp-Source": "AOwi7QAAkY3Cjsr0RwIM47HhNulgUS5P/F32QeRgQKV8dKBHi9anOpX+PoMDyFaPU4KoyeZyvTDaUA==", "X-Received": "by 10.200.55.40 with SMTP id o37mr45522437qtb.248.1505690437536; \n\tSun, 17 Sep 2017 16:20:37 -0700 (PDT)", "From": "=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>", "To": "Igor Mammedov <imammedo@redhat.com>,\n\tEduardo Habkost <ehabkost@redhat.com>, \n\tAurelien Jarno <aurelien@aurel32.net>,\n\tYongbok Kim <yongbok.kim@imgtec.com>,\n\tMarcel Apfelbaum <marcel@redhat.com>", "Date": "Sun, 17 Sep 2017 20:20:07 -0300", "Message-Id": "<20170917232010.14183-4-f4bug@amsat.org>", "X-Mailer": "git-send-email 2.14.1", "In-Reply-To": "<20170917232010.14183-1-f4bug@amsat.org>", "References": "<20170917232010.14183-1-f4bug@amsat.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-detected-operating-system": "by eggs.gnu.org: Genre and OS details not\n\trecognized.", "X-Received-From": "2607:f8b0:400d:c0d::243", "Subject": "[Qemu-devel] [PATCH v3 3/6] mips: split cpu_mips_realize_env() out\n\tof cpu_mips_init()", "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": "Thomas Huth <thuth@redhat.com>, James Hogan <james.hogan@imgtec.com>,\n\t=?utf-8?q?Herv=C3=A9_Poussineau?= <hpoussin@reactos.org>,\n\t=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>,\n\tqemu-devel@nongnu.org", "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": "so it can be used in mips_cpu_realizefn() in the next commit\n\nSigned-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>\nTested-by: Igor Mammedov <imammedo@redhat.com>\nTested-by: James Hogan <james.hogan@imgtec.com>\nReviewed-by: Eduardo Habkost <ehabkost@redhat.com>\n---\n target/mips/internal.h | 1 +\n target/mips/translate.c | 19 ++++++++++++-------\n 2 files changed, 13 insertions(+), 7 deletions(-)", "diff": "diff --git a/target/mips/internal.h b/target/mips/internal.h\nindex 91c2df4537..cf4c9db427 100644\n--- a/target/mips/internal.h\n+++ b/target/mips/internal.h\n@@ -132,6 +132,7 @@ void mips_tcg_init(void);\n \n /* TODO QOM'ify CPU reset and remove */\n void cpu_state_reset(CPUMIPSState *s);\n+void cpu_mips_realize_env(CPUMIPSState *env);\n \n /* cp0_timer.c */\n uint32_t cpu_mips_get_random(CPUMIPSState *env);\ndiff --git a/target/mips/translate.c b/target/mips/translate.c\nindex f0febaf1b2..5fc7979ac5 100644\n--- a/target/mips/translate.c\n+++ b/target/mips/translate.c\n@@ -20512,6 +20512,17 @@ void mips_tcg_init(void)\n \n #include \"translate_init.c\"\n \n+void cpu_mips_realize_env(CPUMIPSState *env)\n+{\n+ env->exception_base = (int32_t)0xBFC00000;\n+\n+#ifndef CONFIG_USER_ONLY\n+ mmu_init(env, env->cpu_model);\n+#endif\n+ fpu_init(env, env->cpu_model);\n+ mvp_init(env, env->cpu_model);\n+}\n+\n MIPSCPU *cpu_mips_init(const char *cpu_model)\n {\n MIPSCPU *cpu;\n@@ -20524,13 +20535,7 @@ MIPSCPU *cpu_mips_init(const char *cpu_model)\n cpu = MIPS_CPU(object_new(TYPE_MIPS_CPU));\n env = &cpu->env;\n env->cpu_model = def;\n- env->exception_base = (int32_t)0xBFC00000;\n-\n-#ifndef CONFIG_USER_ONLY\n- mmu_init(env, def);\n-#endif\n- fpu_init(env, def);\n- mvp_init(env, def);\n+ cpu_mips_realize_env(env);\n \n object_property_set_bool(OBJECT(cpu), true, \"realized\", NULL);\n \n", "prefixes": [ "v3", "3/6" ] }