Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/954150/?format=api
{ "id": 954150, "url": "http://patchwork.ozlabs.org/api/patches/954150/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/1533574847-19294-66-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-66-git-send-email-aleksandar.markovic@rt-rk.com>", "list_archive_url": null, "date": "2018-08-06T17:00:32", "name": "[v7,65/80] linux-user: Update syscall_defs.h header for nanoMIPS", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "8563d09df412c5b0c9fa8e320341166ec2d17726", "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-66-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/954150/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/954150/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 41km245Cnzz9rxx\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 7 Aug 2018 04:11:56 +1000 (AEST)", "from localhost ([::1]:35575 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 1fmjz0-0006O5-9i\n\tfor incoming@patchwork.ozlabs.org; Mon, 06 Aug 2018 14:11:54 -0400", "from eggs.gnu.org ([2001:4830:134:3::10]:42160)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <aleksandar.markovic@rt-rk.com>) id 1fmjHH-0008Lx-LF\n\tfor qemu-devel@nongnu.org; Mon, 06 Aug 2018 13:26:46 -0400", "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <aleksandar.markovic@rt-rk.com>) id 1fmjHE-0002mz-6v\n\tfor qemu-devel@nongnu.org; Mon, 06 Aug 2018 13:26:43 -0400", "from mx2.rt-rk.com ([89.216.37.149]:47366 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 1fmjHD-0002kP-60\n\tfor qemu-devel@nongnu.org; Mon, 06 Aug 2018 13:26:40 -0400", "from localhost (localhost [127.0.0.1])\n\tby mail.rt-rk.com (Postfix) with ESMTP id E59A91A2137;\n\tMon, 6 Aug 2018 19:26:37 +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 BDE1A1A2126;\n\tMon, 6 Aug 2018 19:26:37 +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 19:00:32 +0200", "Message-Id": "<1533574847-19294-66-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>", "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 65/80] linux-user: Update syscall_defs.h\n\theader for nanoMIPS", "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: Aleksandar Markovic <amarkovic@wavecomp.com>\n\nUpdate constants and structures related to linux user syscall support\nin nanoMIPS.\n\nSigned-off-by: Aleksandar Rikalo <arikalo@wavecomp.com>\nSigned-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>\nSigned-off-by: Stefan Markovic <smarkovic@wavecomp.com>\n---\n linux-user/syscall_defs.h | 57 ++++++++++++++++++++++++++++++++++++++++++-----\n 1 file changed, 52 insertions(+), 5 deletions(-)", "diff": "diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h\nindex 40bb60e..abf94b8 100644\n--- a/linux-user/syscall_defs.h\n+++ b/linux-user/syscall_defs.h\n@@ -374,7 +374,7 @@ struct target_dirent64 {\n #define TARGET_SIG_IGN\t((abi_long)1)\t/* ignore signal */\n #define TARGET_SIG_ERR\t((abi_long)-1)\t/* error return from signal */\n \n-#ifdef TARGET_MIPS\n+#if defined(TARGET_MIPS) && !defined(TARGET_NANOMIPS)\n #define TARGET_NSIG\t 128\n #else\n #define TARGET_NSIG\t 64\n@@ -445,7 +445,7 @@ struct target_sigaction {\n target_sigset_t sa_mask;\n abi_ulong sa_restorer;\n };\n-#elif defined(TARGET_MIPS)\n+#elif defined(TARGET_MIPS) && !defined(TARGET_NANOMIPS)\n struct target_sigaction {\n \tuint32_t\tsa_flags;\n #if defined(TARGET_ABI_MIPSN32)\n@@ -459,6 +459,14 @@ struct target_sigaction {\n abi_ulong sa_restorer;\n #endif\n };\n+#elif defined(TARGET_NANOMIPS)\n+struct target_sigaction {\n+ abi_ulong _sa_handler;\n+ abi_uint sa_flags;\n+ target_sigset_t sa_mask;\n+ abi_ulong sa_restorer;\n+};\n+\n #else\n struct target_old_sigaction {\n abi_ulong _sa_handler;\n@@ -537,7 +545,7 @@ typedef struct {\n #define QEMU_SI_RT 5\n \n typedef struct target_siginfo {\n-#ifdef TARGET_MIPS\n+#if defined(TARGET_MIPS) && !defined(TARGET_NANOMIPS)\n \tint si_signo;\n \tint si_code;\n \tint si_errno;\n@@ -665,13 +673,16 @@ struct target_rlimit {\n \n #if defined(TARGET_ALPHA)\n #define TARGET_RLIM_INFINITY\t0x7fffffffffffffffull\n-#elif defined(TARGET_MIPS) || (defined(TARGET_SPARC) && TARGET_ABI_BITS == 32)\n+#elif (defined(TARGET_MIPS) && !defined(TARGET_NANOMIPS)) \\\n+ || (defined(TARGET_SPARC) && TARGET_ABI_BITS == 32)\n #define TARGET_RLIM_INFINITY\t0x7fffffffUL\n+#elif defined(TARGET_NANOMIPS)\n+#define TARGET_RLIM_INFINITY 0x76ffeec4UL\n #else\n #define TARGET_RLIM_INFINITY\t((abi_ulong)-1)\n #endif\n \n-#if defined(TARGET_MIPS)\n+#if defined(TARGET_MIPS) && !defined(TARGET_NANOMIPS)\n #define TARGET_RLIMIT_CPU\t\t0\n #define TARGET_RLIMIT_FSIZE\t\t1\n #define TARGET_RLIMIT_DATA\t\t2\n@@ -687,6 +698,22 @@ struct target_rlimit {\n #define TARGET_RLIMIT_MSGQUEUE\t\t12\n #define TARGET_RLIMIT_NICE\t\t13\n #define TARGET_RLIMIT_RTPRIO\t\t14\n+#elif defined(TARGET_NANOMIPS)\n+#define TARGET_RLIMIT_CPU 0\n+#define TARGET_RLIMIT_FSIZE 1\n+#define TARGET_RLIMIT_DATA 2\n+#define TARGET_RLIMIT_STACK 3\n+#define TARGET_RLIMIT_CORE 4\n+#define TARGET_RLIMIT_RSS 5\n+#define TARGET_RLIMIT_NPROC 6\n+#define TARGET_RLIMIT_NOFILE 7\n+#define TARGET_RLIMIT_MEMLOCK 8\n+#define TARGET_RLIMIT_AS 9\n+#define TARGET_RLIMIT_LOCKS 10\n+#define TARGET_RLIMIT_SIGPENDING 11\n+#define TARGET_RLIMIT_MSGQUEUE 12\n+#define TARGET_RLIMIT_NICE 13\n+#define TARGET_RLIMIT_RTPRIO 14\n #else\n #define TARGET_RLIMIT_CPU\t\t0\n #define TARGET_RLIMIT_FSIZE\t\t1\n@@ -1657,6 +1684,10 @@ struct target_stat64 {\n \tint64_t \tst_blocks;\n };\n \n+#elif defined(TARGET_ABI_MIPSP32)\n+\n+/* No struct stat and struct stat64 structures */\n+\n #elif defined(TARGET_ALPHA)\n \n struct target_stat {\n@@ -2009,6 +2040,22 @@ struct target_statfs {\n \tint32_t\t\t\tf_flags;\n \tint32_t\t\t\tf_spare[5];\n };\n+#elif defined(TARGET_ABI_MIPSP32)\n+struct target_statfs {\n+ abi_long f_type;\n+ abi_long f_bsize;\n+ abi_long f_blocks;\n+ abi_long f_bfree;\n+ abi_long f_bavail;\n+ abi_long f_files;\n+ abi_long f_ffree;\n+\n+ /* Linux specials */\n+ target_fsid_t f_fsid;\n+ abi_long f_namelen;\n+ abi_llong f_frsize; /* Fragment size - unsupported */\n+ abi_long f_spare[6];\n+};\n #else\n struct target_statfs {\n \tabi_long\t\tf_type;\n", "prefixes": [ "v7", "65/80" ] }