• E
    tcg: distribute profiling counters across TCGContext's · c3fac113
    Emilio G. Cota 提交于
    This is groundwork for supporting multiple TCG contexts.
    
    To avoid scalability issues when profiling info is enabled, this patch
    makes the profiling info counters distributed via the following changes:
    
    1) Consolidate profile info into its own struct, TCGProfile, which
       TCGContext also includes. Note that tcg_table_op_count is brought
       into TCGProfile after dropping the tcg_ prefix.
    2) Iterate over the TCG contexts in the system to obtain the total counts.
    
    This change also requires updating the accessors to TCGProfile fields to
    use atomic_read/set whenever there may be conflicting accesses (as defined
    in C11) to them.
    Reviewed-by: NRichard Henderson <rth@twiddle.net>
    Signed-off-by: NEmilio G. Cota <cota@braap.org>
    Signed-off-by: NRichard Henderson <richard.henderson@linaro.org>
    c3fac113
translate-all.c 66.2 KB