src/cpu/mips/vm/vm_version_mips.hpp

changeset 8016
efbfe5d2d462
parent 8015
2581a5399fb7
child 9251
1ccc5a3b3671
     1.1 --- a/src/cpu/mips/vm/vm_version_mips.hpp	Tue Nov 28 15:31:16 2017 +0800
     1.2 +++ b/src/cpu/mips/vm/vm_version_mips.hpp	Tue Nov 28 15:50:12 2017 +0800
     1.3 @@ -33,24 +33,26 @@
     1.4  class VM_Version: public Abstract_VM_Version {
     1.5  protected:
     1.6    enum Feature_Flag {
     1.7 -    with_l2_cache = 0,
     1.8 -    spt_16k_page = 1,
     1.9 -    gs464v = 2,
    1.10 -    gs464e = 3,
    1.11 -    gs464 = 4,
    1.12 -    with_gs_support = 5,
    1.13 +    with_l2_cache   = 0,
    1.14 +    spt_16k_page    = 1,
    1.15 +    gs464v          = 2,
    1.16 +    gs464e          = 3,
    1.17 +    gs464           = 4,
    1.18 +    gs264           = 5,
    1.19 +    with_gs_support = 6,
    1.20       //////////////////////add some other feature here//////////////////
    1.21    };
    1.22  
    1.23    enum Feature_Flag_Set {
    1.24 -    unknown_m    = 0,
    1.25 +    unknown_m         = 0,
    1.26      all_features_m    = -1,
    1.27 -    with_l2_cache_m  = 1 << with_l2_cache,
    1.28 -    spt_16k_page_m   = 1 << spt_16k_page,
    1.29 +    with_l2_cache_m   = 1 << with_l2_cache,
    1.30 +    spt_16k_page_m    = 1 << spt_16k_page,
    1.31      with_gs_support_m = 1 << with_gs_support,
    1.32 -    gs464_m  = 1 << gs464,
    1.33 -    gs464v_m = 1 << gs464v,
    1.34 -    gs464e_m = 1 << gs464e,
    1.35 +    gs464_m           = 1 << gs464,
    1.36 +    gs464v_m          = 1 << gs464v,
    1.37 +    gs464e_m          = 1 << gs464e,
    1.38 +    gs264_m           = 1 << gs264,
    1.39  
    1.40      //////////////////////add some other feature here//////////////////
    1.41    };
    1.42 @@ -71,6 +73,7 @@
    1.43  
    1.44    static bool has_l2_cache() { return _features & with_l2_cache_m; }
    1.45    static bool has_16k_page() { return _features & spt_16k_page_m; }
    1.46 +  static bool is_gs264()     { return _features & gs264_m; }
    1.47    static bool is_gs464()     { return _features & gs464_m; }
    1.48    static bool is_gs464v()    { return _features & gs464v_m; }
    1.49    static bool is_gs464e()    { return _features & gs464e_m; }

mercurial