qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] tcg: Introduce tcg_remove_ops_after


From: Richard Henderson
Subject: Re: [PATCH] tcg: Introduce tcg_remove_ops_after
Date: Mon, 7 Jun 2021 08:22:46 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 6/7/21 6:51 AM, Peter Maydell wrote:
+void tcg_remove_ops_after(TCGOp *op);

A doc comment would be nice.

Fair enough.

This looks OK as far as TCG proper goes, but is it going to confuse
the TCG plugin infrastructure if a frontend generates a bunch of
TCG IR and then winds back the insn stream and generates something
else instead ? I see some calls from tcg/ into plugin related
functions, so I'm not sure...

Mm. Didn't think about that Friday. But looking now, if you wind back to dc->insn_start, everything will be fine.

The plugin stuff will put stuff in the stream, and then go back and post-process it. But it does not record anything on the side, so if the stuff is no longer in the stream all's well.


r~



reply via email to

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