src/cpu/mips/vm/vm_version_mips.hpp

changeset 9578
191e90d9878f
parent 9251
1ccc5a3b3671
child 9644
3089aa0aa0ee
equal deleted inserted replaced
9577:4972f2f8fe2a 9578:191e90d9878f
1 /* 1 /*
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
3 * Copyright (c) 2015, 2017, Loongson Technology. All rights reserved. 3 * Copyright (c) 2015, 2019, Loongson Technology. All rights reserved.
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * 5 *
6 * This code is free software; you can redistribute it and/or modify it 6 * This code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 only, as 7 * under the terms of the GNU General Public License version 2 only, as
8 * published by the Free Software Foundation. 8 * published by the Free Software Foundation.
55 gs264_m = 1 << gs264, 55 gs264_m = 1 << gs264,
56 56
57 //////////////////////add some other feature here////////////////// 57 //////////////////////add some other feature here//////////////////
58 }; 58 };
59 59
60 enum Loongson_Family {
61 L_3A1000 = 0,
62 L_3B1500 = 1,
63 L_3A2000 = 2,
64 L_3B2000 = 3,
65 L_3A3000 = 4,
66 L_3B3000 = 5,
67 L_2K1000 = 6,
68 L_3A4000 = 7,
69 L_3B4000 = 8,
70 L_UNKNOWN = 9
71 };
72
73 struct Loongson_Cpuinfo {
74 Loongson_Family id;
75 const char* const match_str;
76 };
77
60 static int _features; 78 static int _features;
61 static const char* _features_str; 79 static const char* _features_str;
62 80
63 static void print_features(); 81 static void print_features();
64 static int determine_features(); 82 static int determine_features();

mercurial