Received: from eggs.gnu.org ([2001:4830:134:3::10]:38423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byAH7-0001zA-SW for qemu-devel@nongnu.org; Sun, 23 Oct 2016 00:20:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byAH4-0008W9-Nk for qemu-devel@nongnu.org; Sun, 23 Oct 2016 00:20:45 -0400 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:33990) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1byAH4-0008W5-Ge for qemu-devel@nongnu.org; Sun, 23 Oct 2016 00:20:42 -0400 Received: by mail-pf0-x243.google.com with SMTP id 128so12750763pfz.1 for ; Sat, 22 Oct 2016 21:20:42 -0700 (PDT) Sender: Richard Henderson References: <20161019032935.6717-1-marex@denx.de> <20161020134401.3703-1-marex@denx.de> <73051219-52a0-5506-e18d-3eb316c63b36@denx.de> From: Richard Henderson Message-ID: Date: Sat, 22 Oct 2016 21:20:39 -0700 MIME-Version: 1.0 In-Reply-To: <73051219-52a0-5506-e18d-3eb316c63b36@denx.de> Content-Type: text/plain; charset=windows-1252; format=flowed 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: Marek Vasut , qemu-devel@nongnu.org Cc: Chris Wulff , Jeff Da Silva , Ley Foon Tan , Sandra Loosemore , Yves Vandervennet 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~