qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] A question about qemu 0.9.1
@ 2011-04-04 10:10 y y
  2011-04-04 11:05 ` Brad Hards
  2011-04-04 11:13 ` Peter Maydell
  0 siblings, 2 replies; 3+ messages in thread
From: y y @ 2011-04-04 10:10 UTC (permalink / raw)
  To: qemu list

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

I am learning qemu 0.9.1,and there is a question.After I complied the
project,there are some codes in "/i386-softmmu/op.h"

case INDEX_op_movl_A0_EAX: {
extern void op_movl_A0_EAX();
memcpy(gen_code_ptr, (void *)((char *)&op_movl_A0_EAX+0), 3);
gen_code_ptr += 3;
}

Where is this op_movl_A0_EAX() come from?I can't find it in the "op.c" or
even the whole project.But it does exist in the "op.o".I check the file
"Makefile.target"
op.o: op.c
$(CC) $(OP_CFLAGS) $(CPPFLAGS) -c -o $@ $<

"op.o" depends  only on "op.c",isn't it?Then where does this
op_movl_A0_EAX() come from?
Maybe I have made some mistakes.Correct me if I am wrong...
Please give me some help.I was blocked here for a long time.
Thank you very much!
                                                                --Terry

 "

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] A question about qemu 0.9.1
  2011-04-04 10:10 [Qemu-devel] A question about qemu 0.9.1 y y
@ 2011-04-04 11:05 ` Brad Hards
  2011-04-04 11:13 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Brad Hards @ 2011-04-04 11:05 UTC (permalink / raw)
  To: qemu-devel; +Cc: y y

On Mon, 4 Apr 2011 08:10:55 pm y y wrote:
> op_movl_A0_EAX() come from?
I think its a pre-processor generated thing. 

So to find it, I think you need to find the parts (like INDEX_op in one pre-
processor command, and the rest in another place), and how it is pasted 
together.

HTH.

Brad

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] A question about qemu 0.9.1
  2011-04-04 10:10 [Qemu-devel] A question about qemu 0.9.1 y y
  2011-04-04 11:05 ` Brad Hards
@ 2011-04-04 11:13 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2011-04-04 11:13 UTC (permalink / raw)
  To: y y; +Cc: qemu list

2011/4/4 y y <fenglei999999@gmail.com>:
> I am learning qemu 0.9.1

The obvious question here is "why are you looking at 0.9.1?"; it
is now extremely old... In particular it predates the switch to TCG
so anything you learn about the codegen process is likely to be
irrelevant to newer versions.

-- PMM

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-04 11:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-04 10:10 [Qemu-devel] A question about qemu 0.9.1 y y
2011-04-04 11:05 ` Brad Hards
2011-04-04 11:13 ` Peter Maydell

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).