From: Brian Gerst <brgerst@gmail.com>
To: Matteo Croce <technoboy85@gmail.com>
Cc: linux-kernel@vger.kernel.org, Alan Cox <alan@lxorguk.ukuu.org.uk>,
"H. Peter Anvin" <hpa@zytor.com>
Subject: Re: AMD Geode i686
Date: Mon, 1 Mar 2010 18:43:48 -0500 [thread overview]
Message-ID: <73c1f2161003011543q41197be9vbc79e0c86753f0d4@mail.gmail.com> (raw)
In-Reply-To: <40101cc31003011403x4423cb3em1f6fcb04d64dd2bb@mail.gmail.com>
On Mon, Mar 1, 2010 at 5:03 PM, Matteo Croce <technoboy85@gmail.com> wrote:
> Hi,
> I have refreshed my AMD Geode i686 patch with NOPL and I have added a
> new nice feature.
> When a NOPL is found the parser looks for any NOPL after the current
> one, so they are emulated in bulk.
> Tested ok on a Pcengines Alix.
>
> Signed-off-by: Matteo Croce <technoboy85@gmail.com>
1. Since this can possibly touch userspace, you must use get_user() to
read the instruction bytes.
2. This parser is too simple to cover all the possible encodings, not
just the recommended ones from the Intel manual. You really should be
decoding:
- all prefixes (like segment overrides), which can be repeated.
- the 0f 1f opcode.
- the Mod R/M byte.
- the SIB byte (if present).
- the displacement.
This should probably be part of a more general instruction emulator.
--
Brian Gerst
next prev parent reply other threads:[~2010-03-01 23:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-01 22:03 Matteo Croce
2010-03-01 23:43 ` Brian Gerst [this message]
2010-03-01 23:49 ` H. Peter Anvin
2010-04-15 17:11 ` Lennart Sorensen
2010-04-15 17:20 ` Matteo Croce
2010-04-15 17:32 ` Lennart Sorensen
2010-04-15 17:36 ` Matteo Croce
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=73c1f2161003011543q41197be9vbc79e0c86753f0d4@mail.gmail.com \
--to=brgerst@gmail.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=technoboy85@gmail.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
all inboxes | Powered by JetHome®