qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] where is the definition of cpu_ldub_code() for Softmmu


From: Jun Koi
Subject: Re: [Qemu-devel] where is the definition of cpu_ldub_code() for Softmmu mode?
Date: Fri, 12 Jun 2015 15:29:16 +0800



On Mon, May 18, 2015 at 6:20 PM, Peter Maydell <address@hidden> wrote:
On 18 May 2015 at 10:55, Jun Koi <address@hidden> wrote:
> Hi,
>
> I am trying to find the definition of cpu_ldub_code() in Softmmu mode.
> However, the only thing I can find is like this in include/exec/cpu_ldst.h:
>
>     #define cpu_ldub_code(env1, p) ldub_raw(p)

Your QEMU tree is out of date -- this macro was removed in
commit 9220fe54c6.

> Unfortunately, this is only for Usermode (CONFIG_USER_ONLY), so
> still I have no idea where cpu_ldub_code() is defined for Softmmu mode.

In cpu_ldst.h we #define MEMSUFFIX _code and then include
"exec/cpu_ldst_template.h" multiple times to define the
accessor functions for the various widths. (For the usermode
version we include "exec/cpu_ldst_useronly_template.h", for
similar effect.)

Looking closer to this code, this leads to the function helper_ldb_cmmu(),
but I cannot find where this code is defined.

Any hints, please?

Thanks.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]