BRICOUT Thaddée <[email protected]> writes:
> I forgot to attach my plugin and log file. > > Thaddée BRICOUT > > > > De : BRICOUT Thaddée > Envoyé : mardi 10 janvier 2023 17:19 > À : '[email protected]' <[email protected]> > Objet : TCG plugin : problem with call back in SW RISCV instructions > > > > Hi, everyone, > > I need to execute a call back for every SW RISCV instruction executed. When I > add a call back in this > instruction and then I print the instructions in the call back, the result > does not show only SW instructions but > also others. (cf. log.txt line 518) > > I think the call back is not called only when sw instruction is executed. > > Do you have any ideas to fix this problem? Your plugin is only registering a memory callback, not an execution one (qemu_plugin_register_vcpu_insn_exec_cb). Are you aware of the execlog plugin that is in contrib/plugins? > > Thanks > > Thaddée BRICOUT > > [4. InsnCategory-riscv.h --- text/plain; InsnCategory-riscv.h]... > > [5. log.txt --- text/plain; log.txt]... > > [6. plugin_test.c --- text/plain; plugin_test.c]... -- Alex Bennée Virtualisation Tech Lead @ Linaro
