Skip to contentSkip to conversation

ldub_kernel and ldub_code question

Qemu-devel Tommy Huang 1 participant 1 message Aug 3, 2009

lore
Share & tools
lore
#0 lore raw

Hi all,

I tried to use ldub_kernel or any *_kernel function inside target-i386/translate.c.
It complains that it is undefined reference. But I can use ldub_code function in that file.
The strange thing is I can only find definitions of both ldub_kernel and ldub_code functions in cpu-all.h. I didn't see any precompiler options, such as #ifdef, between ldub_kernel and ldub_code.
I don't understand why the compiler can find ldub_code but failed to find ldub_kernel in target-i386/translate.c. My qemu version is 0.9.0. I am not sure if it happens in latest version also.
Any information is highly appreciated.
Thanks.

Regards,
Tommy

_________________________________________________________________
Windows Live™: Keep your life in sync.
http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009