Skip to content
Snippets Groups Projects
  1. Dec 10, 2021
  2. Nov 29, 2021
  3. Nov 16, 2021
  4. Nov 10, 2021
  5. Nov 04, 2021
  6. Nov 02, 2021
  7. Nov 01, 2021
  8. Oct 30, 2021
  9. Oct 15, 2021
  10. Oct 13, 2021
  11. Oct 12, 2021
    • Alex Bennée's avatar
      accel/tcg: re-factor plugin_inject_cb so we can assert insn_idx is valid · 453d50ce
      Alex Bennée authored
      
      Coverity doesn't know enough about how we have arranged our plugin TCG
      ops to know we will always have incremented insn_idx before injecting
      the callback. Let us assert it for the benefit of Coverity and protect
      ourselves from accidentally breaking the assumption and triggering
      harder to grok errors deeper in the code if we attempt a negative
      indexed array lookup.
      
      However to get to this point we re-factor the code and remove the
      second hand instruction boundary detection in favour of scanning the
      full set of ops and using the existing INDEX_op_insn_start to cleanly
      detect when the instruction has started. As we no longer need the
      plugin specific list of ops we delete that.
      
      My initial benchmarks shows no discernible impact of dropping the
      plugin specific ops list.
      
      Fixes: Coverity 1459509
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Message-Id: <20210917162332.3511179-12-alex.bennee@linaro.org>
      453d50ce
  12. Oct 05, 2021
  13. Sep 30, 2021
Loading