From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gm1QF-00015F-BX for qemu-devel@nongnu.org; Mon, 20 Nov 2006 00:10:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gm1QC-000135-HM for qemu-devel@nongnu.org; Mon, 20 Nov 2006 00:10:22 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gm1QC-00012x-9p for qemu-devel@nongnu.org; Mon, 20 Nov 2006 00:10:20 -0500 Received: from [64.233.166.176] (helo=py-out-1112.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gm1QA-0008Av-7U for qemu-devel@nongnu.org; Mon, 20 Nov 2006 00:10:19 -0500 Received: by py-out-1112.google.com with SMTP id j37so1353083pyc for ; Sun, 19 Nov 2006 21:10:17 -0800 (PST) Message-ID: Date: Mon, 20 Nov 2006 00:10:16 -0500 From: "Andrew Wilcox" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [Qemu-devel] Qemu 0.8.0 and latest CVS - invalid opcode doing ljmp to set CS Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hello, My kernel crashes in Qemu with this error: An exception 06 (Invalid Opcode) with error code 0 has occurred in the AWOS kernel (0008:0000004C). the disassembly of the relevant section: 00100039 : 100039: 0f 01 15 60 d0 10 00 lgdtl 0x10d060 100040: 66 b8 10 00 mov $0x10,%ax 100044: 8e d8 movl %eax,%ds 100046: 8e c0 movl %eax,%es 100048: 8e e0 movl %eax,%fs 10004a: 8e e8 movl %eax,%gs 10004c: ea 53 00 10 00 08 00 ljmp $0x8,$0x100053 100053: c3 ret Qemu's disassembly (via log in_asm): 0x00000039: out %eax,(%dx) 0x0000003a: add %dh,%al 0x0000003c: push %ebx 0x0000003d: incl (%eax) 0x0000003f: lock adc %al,0xf84dc000(%ebx) 0x00000046: add %dh,%al 0x00000048: inc %ecx 0x00000049: clc 0x0000004a: add %dh,%al 0x0000004c: (bad) 0x0000004d: jecxz 0x4f I can boot the kernel on a normal computer, an IBM Aptiva with a Pentium 166MHz MMX processor, without this error. Is there a special way to compile the kernel, or maybe something I missed? You may look at the source at: http://awos.sourceforge.net/nightly The computer I am attempting to run Qemu on: Mobile Intel(R) Celeron(R) Processor (NetBurst) 1.60GHz 487MB RAM (16MB shared Video RAM) Ubuntu Dapper Drake 6.06.1 LTS Linux Lappy 2.6.15-27-386 #1 PREEMPT Sat Sep 16 01:51:59 UTC 2006 i686 GNU/Linux Tested with 0.8.0, 0.8.2-release and snapshot-2006-11-18. All exhibit the same problem. I did try and Google "Qemu invalid opcode ljmp" and "Qemu invalid instruction ljmp" and "Qemu #UD ljmp" to no avail. I also saw this message which seems fairly similar to my problem with no replies: http://lists.gnu.org/archive/html/qemu-devel/2006-03/msg00022.html Thank you for your attention. Andrew