From patchwork Sat Sep 26 04:10:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Gang X-Patchwork-Id: 523068 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9B515140771 for ; Sat, 26 Sep 2015 14:10:53 +1000 (AEST) Received: from localhost ([::1]:51832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zfgp2-0005XW-1v for incoming@patchwork.ozlabs.org; Sat, 26 Sep 2015 00:10:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zfgog-0005FX-EL for qemu-devel@nongnu.org; Sat, 26 Sep 2015 00:10:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zfgod-0007NS-7V for qemu-devel@nongnu.org; Sat, 26 Sep 2015 00:10:30 -0400 Received: from smtpbg299.qq.com ([184.105.67.99]:39864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zfgoc-0007Lr-Va for qemu-devel@nongnu.org; Sat, 26 Sep 2015 00:10:27 -0400 X-QQ-mid: esmtp20t1443240608t631t08565 Received: from localhost.localdomain (unknown [223.72.67.103]) by esmtp4.qq.com (ESMTP) with id ; Sat, 26 Sep 2015 12:10:07 +0800 (CST) X-QQ-SSF: 01000000000000F0FH600F00002000H X-QQ-FEAT: IBShUBz8YqSNItdwib0vE0eCEjDLXFCHUjZNLbHf66MYhtB0ciw4KmELTCrB+ ejsAJVEnNTDP1N0cW/kOreMlzSp9/4rIUVMHH0XUS0rHRj3P3f9GoZ9ibutjQ0G1Q/XLhC9 mC3BGk78o27v0/OduHhJEHdAPz394pH5y7E+hDdRpiCqbyOBwBPB7R7LD0ReEeg0X5at9ji W/IrwfFFqw2vVYA8vq5dTJXsL+wGW874q8h/30/Kf7W4+oFvck9yA X-QQ-GoodBg: 0 X-QQ-CSender: gang.chen.5i5j@qq.com From: gang.chen.5i5j@gmail.com To: riku.voipio@iki.fi, peter.maydell@linaro.org, rth@twiddle.net Date: Sat, 26 Sep 2015 12:10:05 +0800 Message-Id: <1443240605-2924-1-git-send-email-gang.chen.5i5j@gmail.com> X-Mailer: git-send-email 1.9.3 X-QQ-SENDSIZE: 520 X-QQ-FName: 1417C21749FA4D8DB88C5DB7FEB7CB12 X-QQ-LocalIP: 127.0.0.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 184.105.67.99 Cc: cmetcalf@ezchip.com, qemu-devel@nongnu.org, xili_gchen_5257@hotmail.com, Chen Gang Subject: [Qemu-devel] [PATCH] linux-user/syscall_defs.h: Sync the latest si_code from Linux kernel X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Chen Gang They content several new macro members, also contents TARGET_N*. Signed-off-by: Chen Gang --- linux-user/syscall_defs.h | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index cdc8db4..6bec3f2 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -736,14 +736,21 @@ typedef struct target_siginfo { /* * SIGILL si_codes */ -#define TARGET_ILL_ILLOPC (1) /* illegal opcode */ -#define TARGET_ILL_ILLOPN (2) /* illegal operand */ -#define TARGET_ILL_ILLADR (3) /* illegal addressing mode */ -#define TARGET_ILL_ILLTRP (4) /* illegal trap */ -#define TARGET_ILL_PRVOPC (5) /* privileged opcode */ -#define TARGET_ILL_PRVREG (6) /* privileged register */ -#define TARGET_ILL_COPROC (7) /* coprocessor error */ -#define TARGET_ILL_BADSTK (8) /* internal stack error */ +#define TARGET_ILL_ILLOPC (1) /* illegal opcode */ +#define TARGET_ILL_ILLOPN (2) /* illegal operand */ +#define TARGET_ILL_ILLADR (3) /* illegal addressing mode */ +#define TARGET_ILL_ILLTRP (4) /* illegal trap */ +#define TARGET_ILL_PRVOPC (5) /* privileged opcode */ +#define TARGET_ILL_PRVREG (6) /* privileged register */ +#define TARGET_ILL_COPROC (7) /* coprocessor error */ +#define TARGET_ILL_BADSTK (8) /* internal stack error */ +#ifdef TARGET_TILEGX +#define TARGET_ILL_DBLFLT (9) /* double fault */ +#define TARGET_ILL_HARDWALL (10) /* user networks hardwall violation */ +#define TARGET_NSIGILL 10 +#else +#define TARGET_NSIGILL 8 +#endif /* * SIGFPE si_codes @@ -763,19 +770,28 @@ typedef struct target_siginfo { */ #define TARGET_SEGV_MAPERR (1) /* address not mapped to object */ #define TARGET_SEGV_ACCERR (2) /* invalid permissions for mapped object */ +#define TARGET_SEGV_BNDERR (3) /* failed address bound checks */ +#define TARGET_NSIGSEGV 3 /* * SIGBUS si_codes */ -#define TARGET_BUS_ADRALN (1) /* invalid address alignment */ -#define TARGET_BUS_ADRERR (2) /* non-existent physical address */ -#define TARGET_BUS_OBJERR (3) /* object specific hardware error */ - +#define TARGET_BUS_ADRALN (1) /* invalid address alignment */ +#define TARGET_BUS_ADRERR (2) /* non-existent physical address */ +#define TARGET_BUS_OBJERR (3) /* object specific hardware error */ +/* hardware memory error consumed on a machine check: action required */ +#define TARGET_BUS_MCEERR_AR (4) +/* hardware memory error detected in process but not consumed: action optional*/ +#define TARGET_BUS_MCEERR_AO (5) +#define TARGET_NSIGBUS 5 /* * SIGTRAP si_codes */ -#define TARGET_TRAP_BRKPT (1) /* process breakpoint */ -#define TARGET_TRAP_TRACE (2) /* process trace trap */ +#define TARGET_TRAP_BRKPT (1) /* process breakpoint */ +#define TARGET_TRAP_TRACE (2) /* process trace trap */ +#define TARGET_TRAP_BRANCH (3) /* process taken branch trap */ +#define TARGET_TRAP_HWBKPT (4) /* hardware breakpoint/watchpoint */ +#define TARGET_NSIGTRAP 4 #endif /* defined(TARGET_I386) || defined(TARGET_ARM) */