Received: from eggs.gnu.org ([2001:4830:134:3::10]:52751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bz7QB-0002vk-9N for qemu-devel@nongnu.org; Tue, 25 Oct 2016 15:30:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bz7QA-0007Pa-3Y for qemu-devel@nongnu.org; Tue, 25 Oct 2016 15:30:03 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:32846) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bz7Q9-0007Nx-Ta for qemu-devel@nongnu.org; Tue, 25 Oct 2016 15:30:02 -0400 References: <20161019032935.6717-1-marex@denx.de> <20161020134401.3703-1-marex@denx.de> <73051219-52a0-5506-e18d-3eb316c63b36@denx.de> From: Marek Vasut Message-ID: <90529f51-e93c-acb1-70e3-05782a9ec024@denx.de> Date: Tue, 25 Oct 2016 17:58:01 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V5 2/7] nios2: Add architecture emulation support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , qemu-devel@nongnu.org Cc: Chris Wulff , Jeff Da Silva , Ley Foon Tan , Sandra Loosemore , Yves Vandervennet On 10/23/2016 06:20 AM, Richard Henderson wrote: > On 10/22/2016 08:01 PM, Marek Vasut wrote: >>> For signed division, you have to protect against 0x80000000 / -1 as >>> well, which raises an overflow exception on the x86 host. >> >> You mean similar to what mips does on OPC_DIV vs OPC_DIVU , right ? > > Yes. > >>> No CPU_LOG_TB_IN_ASM disassembly? I thought patch 1 added a nios2 >>> disassembler. >> >> Nope, I removed it in V4, maybe i misunderstood the review comment? >> " >>> + /* Dump the CPU state to the log */ >>> + if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM)) { >>> + qemu_log("--------------\n"); >>> + log_cpu_state(cs, 0); >>> + } >> >> Cpu state is dumped by -d cpu generically. >> " > > CPU state != disassembly. I mean > > if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM) > && qemu_log_in_addr_range(pc_start)) { > qemu_log("IN: %s\n", lookup_symbol(pc_start)); > log_target_disas(cs, pc_start, ctx.pc - pc_start, 1); > qemu_log("\n"); > } > > > r~ > Both added, thanks! -- Best regards, Marek Vasut