Skip to content
  • Alex Bennée's avatar
    2f169606
    tcg: enable tb_lock() for SoftMMU · 2f169606
    Alex Bennée authored
    
    
    tb_lock() has long been used for linux-user mode to protect code
    generation. By enabling it now we prepare for MTTCG and ensure all code
    generation is serialised by this lock. The other major structure that
    needs protecting is the l1_map and its PageDesc structures. For the
    SoftMMU case we also use tb_lock() to protect these structures instead
    of linux-user mmap_lock() which as the name suggests serialises updates
    to the structure as a result of guest mmap operations.
    
    Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
    Reviewed-by: default avatarRichard Henderson <rth@twiddle.net>
    2f169606
    tcg: enable tb_lock() for SoftMMU
    Alex Bennée authored
    
    
    tb_lock() has long been used for linux-user mode to protect code
    generation. By enabling it now we prepare for MTTCG and ensure all code
    generation is serialised by this lock. The other major structure that
    needs protecting is the l1_map and its PageDesc structures. For the
    SoftMMU case we also use tb_lock() to protect these structures instead
    of linux-user mmap_lock() which as the name suggests serialises updates
    to the structure as a result of guest mmap operations.
    
    Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
    Reviewed-by: default avatarRichard Henderson <rth@twiddle.net>
Loading