From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19GgII-00006F-00 for qemu-devel@nongnu.org; Fri, 16 May 2003 10:34:46 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19GgBa-0005vz-00 for qemu-devel@nongnu.org; Fri, 16 May 2003 10:27:52 -0400 Received: from smtp3.wanadoo.fr ([193.252.22.25] helo=mwinf0604.wanadoo.fr) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19GgAl-0005Dt-00 for qemu-devel@nongnu.org; Fri, 16 May 2003 10:26:59 -0400 Received: from free.fr (ATuileries-112-1-1-37.w80-11.abo.wanadoo.fr [80.11.167.37]) by mwinf0604.wanadoo.fr (SMTP Server) with ESMTP id 37C2728000F4 for ; Fri, 16 May 2003 15:57:35 +0200 (CEST) Message-ID: <3EC4ED93.5000208@free.fr> Date: Fri, 16 May 2003 15:54:27 +0200 From: Fabrice Bellard MIME-Version: 1.0 References: <20030514014546.3FA722C090@lists.samba.org> <3EC22D10.5050506@free.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Regression tests - syscall note Reply-To: qemu-devel@nongnu.org List-Id: List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , To: qemu-devel@nongnu.org Hi, I just updated test-i386 so that it includes vm86, exceptions and self-modifying code tests. I hope it will help qemu ports on other CPUs. About the Sparc and Alpha ports, some changes are needed in syscall.c to convert errno codes, signal numbers and various syscall bit fields. The corresponding code can be extracted from em86 if needed. A more generic problem is that qemu currently uses 'errno' to get the error code of syscalls. The problem is that it is not thread safe as qemu does not rely on the glibc pthread library. My current idea is to call directly all the syscalls from qemu and to use the real Linux return value instead of errno. Is there a better solution ? Fabrice.