From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YamXZ-0007X5-O8 for qemu-devel@nongnu.org; Wed, 25 Mar 2015 10:44:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YamXV-0000yw-RE for qemu-devel@nongnu.org; Wed, 25 Mar 2015 10:44:17 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:45058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YamXV-0000yg-L8 for qemu-devel@nongnu.org; Wed, 25 Mar 2015 10:44:13 -0400 Message-ID: <5512C9B8.4070205@imgtec.com> Date: Wed, 25 Mar 2015 14:44:08 +0000 From: Leon Alrae MIME-Version: 1.0 References: <8111192.6dZICC2BlA@lczc1207b1zdcs> <5512B46A.4080208@imgtec.com> <13996240.6S33Ckap3f@lczc1207b1zdcs> In-Reply-To: <13996240.6S33Ckap3f@lczc1207b1zdcs> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Support for NetLogic XLP Processors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Duarte Silva , James Hogan Cc: qemu-devel@nongnu.org Hi Duarte, On 25/03/2015 14:20, Duarte Silva wrote: > On Wednesday 25 March 2015 13:13:14 James Hogan wrote: >> Hi Duarte, >> >> On 22/03/15 11:13, Duarte Silva wrote: >>> Hi guys, >>> >>> I have been struggling to get some binaries compiled for NetLogic XLP >>> processor to run under QEMU. I have tried a bunch of things (most going >>> back and forth) and always get the following error message: >>> >>> qemu: uncaught target signal 4 (Illegal instruction) - core dumped >>> Illegal instruction >>> >>> I tried to debug it using GDB but to no avail. Does anybody have ideas? >>> I'm >>> running QEMU 2.2.1. >> >> It sounds like the program had an instruction that QEMU doesn't >> recognise, or doesn't think should be allowed on the current CPU which >> you've set with -cpu. You might be able to find out what that >> instruction is by putting this on your qemu command line: >> >> -singlestep -d in_asm > Hi James, > > thanks for the help :) I have tried with all the CPU's available. None of them > worked, so I just leave it as undefined. It seems the offending instruction is > "udi4". > > (...) > IN: > 0x765d1fa4: udi4 a0,v0,zero,0x0 According to this line you are trying to use MIPS32 CPU whereas I presume you would like MIPS64R2? Please try 5KEf CPU for example which is available in qemu-mips64 and qemu-mips64el QEMU binaries for big and little endian respectively. Leon