qemu-discuss
[Top][All Lists]
Advanced

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

Re: TCG plugin : problem with call back in SW RISCV instructions


From: Alex Bennée
Subject: Re: TCG plugin : problem with call back in SW RISCV instructions
Date: Tue, 07 Feb 2023 13:30:48 +0000
User-agent: mu4e 1.9.19; emacs 29.0.60

BRICOUT Thaddée <thaddee.bricout@cea.fr> writes:

> I forgot to attach my plugin and log file.
>
> Thaddée BRICOUT
>
>  
>
> De : BRICOUT Thaddée 
> Envoyé : mardi 10 janvier 2023 17:19
> À : 'qemu-discuss@nongnu.org' <qemu-discuss@nongnu.org>
> 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



reply via email to

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