From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbcWt-0000fc-Ou for qemu-devel@nongnu.org; Thu, 22 Nov 2012 14:33:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbcWp-0005HG-Gy for qemu-devel@nongnu.org; Thu, 22 Nov 2012 14:33:43 -0500 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:61916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbcWp-0005GE-0o for qemu-devel@nongnu.org; Thu, 22 Nov 2012 14:33:39 -0500 Received: from csmailer.cs.nctu.edu.tw (localhost [127.0.0.1]) by csmailer.cs.nctu.edu.tw (Postfix) with ESMTP id 2327FF4C for ; Fri, 23 Nov 2012 03:33:34 +0800 (CST) Received: from alumni.cs.nctu.edu.tw (alumni.cs.nctu.edu.tw [140.113.235.116]) by csmailer.cs.nctu.edu.tw (Postfix) with ESMTP id ED4B1F4B for ; Fri, 23 Nov 2012 03:33:33 +0800 (CST) Received: (from chenwj@localhost) by alumni.cs.nctu.edu.tw (8.14.5/8.14.5/Submit) id qAMJXXtV090517 for qemu-devel@nongnu.org; Fri, 23 Nov 2012 03:33:33 +0800 (CST) (envelope-from chenwj) Date: Fri, 23 Nov 2012 03:33:33 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= Message-ID: <20121122193333.GA90068@cs.nctu.edu.tw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] MIPS exception number limits? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi all, Wondering why MIPS limits exception number less then 0x100, you can see such example in function do_raise_exception_err (target-mips/op_helper.c). See below, static inline void QEMU_NORETURN do_raise_exception_err(CPUMIPSState *env= , ... { ... #if 1 if (exception < 0x100) qemu_log("%s: %d %d\n", __func__, exception, error_code); #endif ... } Anyone can help confirm this, stated in what spec? Also, do we need "#if 1 .. #endif"? Thanks for help. =3D] =20 Regards, chenwj --=20 Wei-Ren Chen (=E9=99=B3=E9=9F=8B=E4=BB=BB) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj