1. 16 1月, 2020 1 次提交
  2. 28 10月, 2019 1 次提交
    • E
      plugin-gen: add module for TCG-related code · 38b47b19
      Emilio G. Cota 提交于
      We first inject empty instrumentation from translator_loop.
      After translation, we go through the plugins to see what
      they want to register for, filling in the empty instrumentation.
      If if turns out that some instrumentation remains unused, we
      remove it.
      
      This approach supports the following features:
      
      - Inlining TCG code for simple operations. Note that we do not
        export TCG ops to plugins. Instead, we give them a C API to
        insert inlined ops. So far we only support adding an immediate
        to a u64, e.g. to count events.
      
      - "Direct" callbacks. These are callbacks that do not go via
        a helper. Instead, the helper is defined at run-time, so that
        the plugin code is directly called from TCG. This makes direct
        callbacks as efficient as possible; they are therefore used
        for very frequent events, e.g. memory callbacks.
      
      - Passing the host address to memory callbacks. Most of this
        is implemented in a later patch though.
      
      - Instrumentation of memory accesses performed from helpers.
        See the corresponding comment, as well as a later patch.
      Signed-off-by: NEmilio G. Cota <cota@braap.org>
      [AJB: add alloc_tcg_plugin_context, use glib, rm hwaddr]
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
      Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
      38b47b19
  3. 23 5月, 2019 3 次提交
  4. 14 5月, 2019 2 次提交
    • R
    • R
      tcg: Add INDEX_op_dupm_vec · 37ee55a0
      Richard Henderson 提交于
      Allow the backend to expand dup from memory directly, instead of
      forcing the value into a temp first.  This is especially important
      if integer/vector register moves do not exist.
      
      Note that officially tcg_out_dupm_vec is allowed to fail.
      If it did, we could fix this up relatively easily:
      
        VECE == 32/64:
          Load the value into a vector register, then dup.
          Both of these must work.
      
        VECE == 8/16:
          If the value happens to be at an offset such that an aligned
          load would place the desired value in the least significant
          end of the register, go ahead and load w/garbage in high bits.
      
          Load the value w/INDEX_op_ld{8,16}_i32.
          Attempt a move directly to vector reg, which may fail.
          Store the value into the backing store for OTS.
          Load the value into the vector reg w/TCG_TYPE_I32, which must work.
          Duplicate from the vector reg into itself, which must work.
      
      All of which is well and good, except that all supported
      hosts can support dupm for all vece, so all of the failure
      paths would be dead code and untestable.
      Reviewed-by: NAlex Bennée <alex.bennee@linaro.org>
      Signed-off-by: NRichard Henderson <richard.henderson@linaro.org>
      37ee55a0
  5. 25 4月, 2019 1 次提交
  6. 28 1月, 2019 2 次提交
  7. 26 12月, 2018 1 次提交
  8. 28 3月, 2018 1 次提交
  9. 08 2月, 2018 5 次提交
  10. 06 6月, 2017 1 次提交
    • E
      tcg: Introduce goto_ptr opcode and tcg_gen_lookup_and_goto_ptr · cedbcb01
      Emilio G. Cota 提交于
      Instead of exporting goto_ptr directly to TCG frontends, export
      tcg_gen_lookup_and_goto_ptr(), which calls goto_ptr with the pointer
      returned by the lookup_tb_ptr() helper. This is the only use case
      we have for goto_ptr and lookup_tb_ptr, so having this function is
      very convenient. Furthermore, it trivially allows us to avoid calling
      the lookup helper if goto_ptr is not implemented by the backend.
      Reviewed-by: NAlex Bennée <alex.bennee@linaro.org>
      Signed-off-by: NEmilio G. Cota <cota@braap.org>
      Message-Id: <1493263764-18657-2-git-send-email-cota@braap.org>
      Message-Id: <1493263764-18657-3-git-send-email-cota@braap.org>
      Message-Id: <1493263764-18657-4-git-send-email-cota@braap.org>
      Message-Id: <1493263764-18657-5-git-send-email-cota@braap.org>
      [rth: Squashed 4 related commits.]
      Signed-off-by: NRichard Henderson <rth@twiddle.net>
      cedbcb01
  11. 11 1月, 2017 2 次提交
  12. 10 1月, 2017 1 次提交
  13. 16 9月, 2016 1 次提交
  14. 20 10月, 2015 1 次提交
  15. 07 10月, 2015 2 次提交
  16. 25 8月, 2015 3 次提交
  17. 15 5月, 2015 1 次提交
  18. 13 2月, 2015 1 次提交
  19. 05 6月, 2014 1 次提交
  20. 13 5月, 2014 2 次提交
  21. 29 4月, 2014 1 次提交
  22. 11 10月, 2013 1 次提交
  23. 03 9月, 2013 1 次提交
  24. 09 7月, 2013 3 次提交
  25. 24 2月, 2013 1 次提交