All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Mohammed Gamal <m.gamal005@gmail.com>
Cc: Gleb Natapov <gleb@redhat.com>, mtosatti@redhat.com, kvm@vger.kernel.org
Subject: Re: [PATCH] x86 emulator: Add stc instruction (opcode 0xf9)
Date: Thu, 05 Aug 2010 16:12:07 +0300	[thread overview]
Message-ID: <4C5AB8A7.5020509@redhat.com> (raw)
In-Reply-To: <AANLkTi=T4FAAfJC8W=7SHCpfoH_NAWvtZK-1u+2di1YP@mail.gmail.com>

  On 08/05/2010 04:01 PM, Mohammed Gamal wrote:
> On Thu, Aug 5, 2010 at 3:49 PM, Gleb Natapov<gleb@redhat.com>  wrote:
>> On Thu, Aug 05, 2010 at 03:42:49PM +0300, Mohammed Gamal wrote:
>>> Signed-off-by: Mohammed Gamal<m.gamal005@gmail.com>
>>> ---
>>>   arch/x86/kvm/emulate.c |    6 +++++-
>>>   1 files changed, 5 insertions(+), 1 deletions(-)
>>>
>>> diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
>>> index f0f4a43..f345df0 100644
>>> --- a/arch/x86/kvm/emulate.c
>>> +++ b/arch/x86/kvm/emulate.c
>>> @@ -2269,7 +2269,7 @@ static struct opcode opcode_table[256] = {
>>>        N, N, N, N,
>>>        D(ImplicitOps | Priv), D(ImplicitOps), G(ByteOp, group3), G(0, group3),
>>>        /* 0xF8 - 0xFF */
>>> -     D(ImplicitOps), N, D(ImplicitOps), D(ImplicitOps),
>>> +     D(ImplicitOps), D(ImplicitOps), D(ImplicitOps), D(ImplicitOps),
>>>        D(ImplicitOps), D(ImplicitOps), G(0, group4), G(0, group5),
>>>   };
>>>
>>> @@ -3129,6 +3129,10 @@ special_insn:
>>>                ctxt->eflags&= ~EFLG_CF;
>>>                c->dst.type = OP_NONE;  /* Disable writeback. */
>>>                break;
>>> +     case 0xf9: /* stc */
>>> +             ctxt->eflags |= EFLG_CF;
>>> +             c->dst.type = OP_NONE;  /* Disable writeback */
>> With "disable writeback when decode dest operand" patch (which should be
>> applied already) this is no longer needed.
> Right. Should I wait for it to be merged and resend?

It's merged (in next branch), but I'll just drop that line when applying.

-- 
error compiling committee.c: too many arguments to function


      reply	other threads:[~2010-08-05 13:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-05 12:42 [PATCH] x86 emulator: Add stc instruction (opcode 0xf9) Mohammed Gamal
2010-08-05 12:49 ` Gleb Natapov
2010-08-05 13:01   ` Mohammed Gamal
2010-08-05 13:12     ` Avi Kivity [this message]

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=4C5AB8A7.5020509@redhat.com \
    --to=avi@redhat.com \
    --cc=gleb@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=m.gamal005@gmail.com \
    --cc=mtosatti@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.