* [Qemu-devel] glue(glue(ld, USUFFIX), _p)
@ 2017-06-25 21:51 Theodore Dubois
2017-06-26 4:18 ` Philippe Mathieu-Daudé
2017-06-26 9:15 ` Peter Maydell
0 siblings, 2 replies; 3+ messages in thread
From: Theodore Dubois @ 2017-06-25 21:51 UTC (permalink / raw)
To: qemu-devel
In include/exec/cpu_ldst_useronly_template.h, there’s references to glue(glue(ld, USUFFIX), _p), which would expand to a call to a function looking something like uint32_t lduw_p(void *) (for example). Where is this function defined?
~Theodore
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] glue(glue(ld, USUFFIX), _p)
2017-06-25 21:51 [Qemu-devel] glue(glue(ld, USUFFIX), _p) Theodore Dubois
@ 2017-06-26 4:18 ` Philippe Mathieu-Daudé
2017-06-26 9:15 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2017-06-26 4:18 UTC (permalink / raw)
To: Theodore Dubois; +Cc: qemu-devel@nongnu.org Developers
Hi Theodore,
> In include/exec/cpu_ldst_useronly_template.h, there’s references to glue(glue(ld, USUFFIX), _p), which would expand to a call to a function looking something like uint32_t lduw_p(void *) (for example). Where is this function defined?
You might be looking for the glue address_space_lduw_internal() at
line 251 of memory_ldst.inc.c:
https://github.com/qemu/qemu/blob/master/memory_ldst.inc.c#L251
Regards,
Phil.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] glue(glue(ld, USUFFIX), _p)
2017-06-25 21:51 [Qemu-devel] glue(glue(ld, USUFFIX), _p) Theodore Dubois
2017-06-26 4:18 ` Philippe Mathieu-Daudé
@ 2017-06-26 9:15 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2017-06-26 9:15 UTC (permalink / raw)
To: Theodore Dubois; +Cc: QEMU Developers
On 25 June 2017 at 22:51, Theodore Dubois <tblodt@icloud.com> wrote:
> In include/exec/cpu_ldst_useronly_template.h, there’s
> references to glue(glue(ld, USUFFIX), _p), which would
> expand to a call to a function looking something like
> uint32_t lduw_p(void *) (for example). Where is this
> function defined?
lduw_p is a #define in include/exec/cpu-all.h: it expands
to either lduw_be_p or lduw_le_p depending on whether the
target CPU is big or little endian.
lduw_le_p/lduw_be_p are defined as inline functions in
include/qemu/bswap.h (and are in turn implemented using
other functions and macros also defined in bswap.h).
thanks
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-26 9:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-25 21:51 [Qemu-devel] glue(glue(ld, USUFFIX), _p) Theodore Dubois
2017-06-26 4:18 ` Philippe Mathieu-Daudé
2017-06-26 9:15 ` Peter Maydell
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.