* [Qemu-devel] limitations of DEF_HELPER
@ 2011-03-07 1:25 felix.matenaar@rwth-aachen
0 siblings, 0 replies; only message in thread
From: felix.matenaar@rwth-aachen @ 2011-03-07 1:25 UTC (permalink / raw)
To: qemu-devel
Hello *,
modifying target-i386/translate.c for calling helper functions when
specific arithmetic operations are executed.
Example:
static void gen_shift(DisasContext *s1, int op, int ot, int d, int s,
target_ulong pc_start)
{
if (s != OR_TMP1)
gen_op_mov_TN_reg(ot, 1, s);
if(optrace_enabled && userspace(pc_start))
gen_helper_opcode_event(); // custom helper function
switch(op) {
...
...
}
What I noticed is that Qemu segfaults after some calls to these helper
functions but as far as I figured out not in my analysis code. So my
question is if there are any limitations on how helper functions can be
used because I have already hooks in disas_insn which work without any
problems.
Regards,
Felix
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-03-07 1:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-07 1:25 [Qemu-devel] limitations of DEF_HELPER felix.matenaar@rwth-aachen
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).