|
| From: | Richard Henderson |
| Subject: | Re: [PATCH] accel/tcg: assert insn_idx will always be valid before plugin_inject_cb |
| Date: | Mon, 13 Sep 2021 07:11:45 -0700 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 9/13/21 7:06 AM, Alex Bennée wrote:
Hmm so we have a separate list for speedy access:
/* list to quickly access the injected ops */
QSIMPLEQ_HEAD(, TCGOp) plugin_ops;
I wonder if we should drop that and just scan QTAILQ_HEAD(, TCGOp) ops
so we can be properly aligned with the current instruction.
Alternatively we could just emit INDEX_op_insn_start to the plugin list
as well?
I suspect that just scanning the whole list would be easiest. Then you don't need to maintain your own separate list.
r~
| [Prev in Thread] | Current Thread | [Next in Thread] |