qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Richard Henderson <rth@twiddle.net>, qemu-devel@nongnu.org
Cc: Chris Wulff <crwulff@gmail.com>,
	Jeff Da Silva <jdasilva@altera.com>,
	Ley Foon Tan <lftan@altera.com>,
	Sandra Loosemore <sandra@codesourcery.com>,
	Yves Vandervennet <yvanderv@altera.com>
Subject: Re: [Qemu-devel] [PATCH V5 2/7] nios2: Add architecture emulation support
Date: Tue, 25 Oct 2016 17:58:01 +0200	[thread overview]
Message-ID: <90529f51-e93c-acb1-70e3-05782a9ec024@denx.de> (raw)
In-Reply-To: <df9613a5-fd68-7f71-42e7-a124d02501dc@twiddle.net>

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

  reply	other threads:[~2016-10-25 19:30 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-18 21:50 [Qemu-devel] [PATCH V3 1/7] nios2: Add disas entries Marek Vasut
2016-10-18 21:50 ` [Qemu-devel] [PATCH V3 2/7] nios2: Add architecture emulation support Marek Vasut
2016-10-18 23:04   ` Richard Henderson
2016-10-19  3:23     ` Marek Vasut
2016-10-19 15:50       ` Richard Henderson
2016-10-20  3:01         ` Marek Vasut
2016-10-20  5:05           ` Richard Henderson
2016-10-20 13:39             ` Marek Vasut
2016-10-19  3:29   ` [Qemu-devel] [PATCH V4 " Marek Vasut
2016-10-20 13:44     ` [Qemu-devel] [PATCH V5 " Marek Vasut
2016-10-20 14:35       ` Richard Henderson
2016-10-23  3:01         ` Marek Vasut
2016-10-23  4:20           ` Richard Henderson
2016-10-25 15:58             ` Marek Vasut [this message]
2016-10-25 19:57       ` [Qemu-devel] [PATCH V6 " Marek Vasut
2016-11-07  3:58         ` [Qemu-devel] [V6, " Guenter Roeck
2016-11-07 18:14           ` Marek Vasut
2016-11-07 19:54             ` Guenter Roeck
2016-11-07 20:22               ` Romain Naour
2016-11-07 21:40                 ` Guenter Roeck
2016-11-12 21:50               ` Marek Vasut
2016-11-12 23:25                 ` Guenter Roeck
2016-11-13 12:01                   ` Marek Vasut
2016-11-13 12:43                     ` Marek Vasut
2016-11-13 16:25                       ` Guenter Roeck
2016-11-13 22:56                         ` Marek Vasut
2016-11-13 16:09                     ` Guenter Roeck
2016-11-13 22:58                       ` Marek Vasut
2016-10-18 21:50 ` [Qemu-devel] [PATCH V3 3/7] nios2: Add usermode binaries emulation Marek Vasut
2016-10-18 21:50 ` [Qemu-devel] [PATCH V3 4/7] nios2: Add IIC interrupt controller emulation Marek Vasut
2016-10-18 21:50 ` [Qemu-devel] [PATCH V3 5/7] nios2: Add periodic timer emulation Marek Vasut
2016-10-18 21:50 ` [Qemu-devel] [PATCH V3 6/7] nios2: Add Altera 10M50 GHRD emulation Marek Vasut
2016-11-07 23:45   ` [Qemu-devel] [V3,6/7] " Guenter Roeck
2016-10-18 21:50 ` [Qemu-devel] [PATCH V3 7/7] nios2: Add support for Nios-II R1 Marek Vasut
2016-11-07  3:55 ` [Qemu-devel] [V3,1/7] nios2: Add disas entries Guenter Roeck
2016-11-07  4:17   ` Sandra Loosemore
2016-11-07  4:55     ` Alexey Kardashevskiy
2016-11-07  6:33     ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=90529f51-e93c-acb1-70e3-05782a9ec024@denx.de \
    --to=marex@denx.de \
    --cc=crwulff@gmail.com \
    --cc=jdasilva@altera.com \
    --cc=lftan@altera.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=sandra@codesourcery.com \
    --cc=yvanderv@altera.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).