qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Mark Karpeles <mark@hell.ne.jp>
To: malc <av1474@comtv.ru>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] multi-bytes nop and 64bits
Date: Tue, 21 Apr 2009 19:39:54 +0200	[thread overview]
Message-ID: <1240335594.9112.3536.camel@localhost> (raw)
In-Reply-To: <Pine.LNX.4.64.0904212113280.2238@linmac.oyster.ru>

Le mardi 21 avril 2009 à 21:20 +0400, malc a écrit :
> > Patch:
> > http://ookoo.org/svn/snip/qemu-0.10.1-nopl-fix.patch
> 
> I'm not intimately familiar with binutils' disasm but it looks correct
> save for the fact that hint_nop take M and not Ev as operand, which
> might be irrelevant for disassembler though...

To tell you the truth, I had a look at the current (ie. gdb 6.8) gdb
disassembler, and saw it was "Ev". It also produces correct result when
I look at the disassembled code (while the operand is irrelevant, it
gives a hint regarding the whole opcode's size).
I believe those who knows best how this decompiler works are those who
have continued to improve it, so I didn't look too deep in this, just
backported support for multibyte nop to code used in qemu (tried to port
the whole decompiler, but it changed too much, and I'm too lazy to
attempt to fix that).

I'm just adding [PATCH] to the subject, just to let everyone here know
this mail contains a patch. I successfully tested it on 3 machines
without problems and it already saved my day once by showing me where my
kernel was stopping (I'm in the process of porting from 32bits to
64bits, knowing what happens inside is a great help).

Anyway the decompiler obviously needs to be either re-made, or
re-imported from gdb, but this little patch will help until someone with
better knowledge of qemu and gdb does it.


Mark

  reply	other threads:[~2009-04-21 17:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-20 17:51 [Qemu-devel] multi-bytes nop and 64bits Mark Karpeles
2009-04-20 22:10 ` malc
2009-04-21  5:50   ` M. Karpelès
2009-04-21  6:38   ` Mark Karpeles
2009-04-21 17:20     ` malc
2009-04-21 17:39       ` Mark Karpeles [this message]
2009-04-21 18:11         ` [Qemu-devel] [PATCH] " Avi Kivity
2009-04-21 22:30         ` malc

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=1240335594.9112.3536.camel@localhost \
    --to=mark@hell.ne.jp \
    --cc=av1474@comtv.ru \
    --cc=qemu-devel@nongnu.org \
    /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).