Skip to content
Snippets Groups Projects
  • Emilio G. Cota's avatar
    cedbcb01
    tcg: Introduce goto_ptr opcode and tcg_gen_lookup_and_goto_ptr · cedbcb01
    Emilio G. Cota authored
    
    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: default avatarAlex Bennée <alex.bennee@linaro.org>
    Signed-off-by: default avatarEmilio 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: default avatarRichard Henderson <rth@twiddle.net>
    cedbcb01
    History
    tcg: Introduce goto_ptr opcode and tcg_gen_lookup_and_goto_ptr
    Emilio G. Cota authored
    
    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: default avatarAlex Bennée <alex.bennee@linaro.org>
    Signed-off-by: default avatarEmilio 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: default avatarRichard Henderson <rth@twiddle.net>