qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Eduardo Felipe" <edusaper@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: Detecting an assembly instruction in QEMU
Date: Thu, 26 Apr 2007 16:03:52 +0200	[thread overview]
Message-ID: <83a4d4ca0704260703u78a43f5co11004fc6c98dd49f@mail.gmail.com> (raw)
In-Reply-To: <d5f3bd2b0704250950t444ce1e8ib28ae55702142e57@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 894 bytes --]

2007/4/25, Atif Hashmi <atifhashmi@gmail.com>:
>
> Instructions like addl %ebx, (%eax) are also considered to be memory
> refernce instructions. Do these type of instructions also refer to the
> functions that you mentioned.


No. You are using __asm_volatile("mov %al %al") to mark the start of your
transaction and __asm_volatile("mov %bl %bl") to mark the end. What I meant
is that your compiler could generate mov %al,%al or mov %bl,%bl in any other
place for whatever reason when it compiles C code. Also your guest OS or any
other program running in it can use these two instructions too. Both cases
would affect in what you intend to do.

Secondly, what is the purpose of undef ASM_SOFTMMU


If ASM_SOFTMMU is defined, pure assembly memory access routines are used
(faster). If it is not defined, alternative C routines are used, which are
slower but easier to modify.

Regards,
Eduardo

[-- Attachment #2: Type: text/html, Size: 1397 bytes --]

  reply	other threads:[~2007-04-26 14:09 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-04  4:57 [Qemu-devel] Detecting an assembly instruction in QEMU Atif Hashmi
2007-04-05 17:37 ` [Qemu-devel] " Atif Hashmi
2007-04-06 12:15   ` Eduardo Felipe
2007-04-07 21:06     ` Atif Hashmi
2007-04-08 14:13       ` Eduardo Felipe
2007-04-08 21:38         ` Atif Hashmi
2007-04-08 22:14           ` Eduardo Felipe
2007-04-17  0:17             ` Atif Hashmi
2007-04-17  0:22               ` Atif Hashmi
2007-04-17  9:49                 ` Eduardo Felipe
2007-04-17 20:33                   ` Atif Hashmi
2007-04-22 13:09                     ` Eduardo Felipe
2007-04-24  7:30                       ` Atif Hashmi
2007-04-24  9:34                         ` Eduardo Felipe
2007-04-25 16:21                           ` Atif Hashmi
2007-04-25 16:50                             ` Atif Hashmi
2007-04-26 14:03                               ` Eduardo Felipe [this message]
2007-04-26 21:26                                 ` Atif Hashmi
2007-04-27 10:16                                   ` Eduardo Felipe
2007-05-01 20:28                                     ` Atif Hashmi
2007-04-11 16:05           ` Thiemo Seufer

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=83a4d4ca0704260703u78a43f5co11004fc6c98dd49f@mail.gmail.com \
    --to=edusaper@gmail.com \
    --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).