[Top][All Lists]

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

[Qemu-devel] limitations of DEF_HELPER

From: address@hidden
Subject: [Qemu-devel] limitations of DEF_HELPER
Date: Mon, 07 Mar 2011 02:25:49 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110223 Thunderbird/3.1.8

Hello *,

modifying target-i386/translate.c for calling helper functions when
specific arithmetic operations are executed.

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


reply via email to

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