From: Avi Kivity <avi@redhat.com>
To: Mohammed Gamal <m.gamal005@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH] Add push es instruction test in test harness
Date: Sun, 16 Aug 2009 11:44:12 +0300 [thread overview]
Message-ID: <4A87C6DC.2000604@redhat.com> (raw)
In-Reply-To: <20090816005455.GB19989@mohd-laptop>
On 08/16/2009 03:54 AM, Mohammed Gamal wrote:
> Signed-off-by: Mohammed Gamal<m.gamal005@gmail.com>
> ---
> kvm/user/test/x86/realmode.c | 16 ++++++++++++++++
> 1 files changed, 16 insertions(+), 0 deletions(-)
>
> diff --git a/kvm/user/test/x86/realmode.c b/kvm/user/test/x86/realmode.c
> index 755b5d1..8db2c7a 100644
> --- a/kvm/user/test/x86/realmode.c
> +++ b/kvm/user/test/x86/realmode.c
> @@ -468,6 +468,21 @@ void test_long_jmp()
> print_serial("Long JMP Test: FAIL\n");
> }
>
> +void test_push_es()
> +{
> + struct regs inregs = { 0 }, outregs;
> +
> + MK_INSN(push_es, "mov $0x1234, %ax\n\t"
> + "mov %ax, %es\n\t"
> + "push %es\n\t"
> + "movw (%esp), %bx \n\t");
> + exec_in_big_real_mode(&inregs,&outregs,
> + insn_push_es,
> + insn_push_es_end - insn_push_es);
> + if(!regs_equal(&inregs,&outregs, R_AX|R_BX|R_SP) || outregs.eax != 0x1234)
>
You need to check bx here, otherwise the test will always succeed.
> + print_serial("Push ES Test: FAIL\n");
> +}
> +
>
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2009-08-16 8:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-16 0:54 [PATCH] Add push es instruction test in test harness Mohammed Gamal
2009-08-16 8:44 ` Avi Kivity [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-08-16 17:51 Mohammed Gamal
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=4A87C6DC.2000604@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=m.gamal005@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 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.