On 28/10/22 09:21, Icenowy Zheng wrote:
When registering helpers via FFI for TCI, the inner loop that iterates
parameters of the helper reuses (and thus pollutes) the same variable
used by the outer loop that iterates all helpers, thus made some helpers
unregistered.

Oops, I didn't notice while testing, good catch.

Fix this logic error by using a dedicated temporary variable for the
inner loop.

Fixes: 22f15579fa ("tcg: Build ffi data structures for helpers")
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>

Signed-off-by: Icenowy Zheng <u...@icenowy.me>
---
  tcg/tcg.c | 7 ++++---
  1 file changed, 4 insertions(+), 3 deletions(-)


Reply via email to