Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | /* |
2 | * ========== Copyright Header Begin ========================================== | |
3 | * | |
4 | * OpenSPARC T2 Processor File: isa3_mt_hwtw1.s | |
5 | * Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved | |
6 | * 4150 Network Circle, Santa Clara, California 95054, U.S.A. | |
7 | * | |
8 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
9 | * | |
10 | * This program is free software; you can redistribute it and/or modify | |
11 | * it under the terms of the GNU General Public License as published by | |
12 | * the Free Software Foundation; version 2 of the License. | |
13 | * | |
14 | * This program is distributed in the hope that it will be useful, | |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | * GNU General Public License for more details. | |
18 | * | |
19 | * You should have received a copy of the GNU General Public License | |
20 | * along with this program; if not, write to the Free Software | |
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
22 | * | |
23 | * For the avoidance of doubt, and except that if any non-GPL license | |
24 | * choice is available it will apply instead, Sun elects to use only | |
25 | * the General Public License version 2 (GPLv2) at this time for any | |
26 | * software where a choice of GPL license versions is made | |
27 | * available with the language indicating that GPLv2 or any later version | |
28 | * may be used, or where a choice of which version of the GPL is applied is | |
29 | * otherwise unspecified. | |
30 | * | |
31 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
32 | * CA 95054 USA or visit www.sun.com if you need additional information or | |
33 | * have any questions. | |
34 | * | |
35 | * | |
36 | * ========== Copyright Header End ============================================ | |
37 | */ | |
38 | #define PORTABLE_CORE | |
39 | ||
40 | #define THREAD_COUNT 8 | |
41 | #define THREAD_STRIDE 1 | |
42 | ||
43 | !!! Turn on HWTW | |
44 | #define PART0_Z_HWTEN_0 1 | |
45 | #define PART0_NZ_HWTEN_0 1 | |
46 | #define PART0_Z_HWTEN_1 1 | |
47 | #define PART0_NZ_HWTEN_1 1 | |
48 | #define PART0_Z_HWTEN_2 1 | |
49 | #define PART0_NZ_HWTEN_2 1 | |
50 | #define PART0_Z_HWTEN_3 1 | |
51 | #define PART0_NZ_HWTEN_3 1 | |
52 | ||
53 | #define PART0_Z_RANOTPA_0 1 | |
54 | #define PART0_Z_RANOTPA_1 1 | |
55 | #define PART0_Z_RANOTPA_2 1 | |
56 | #define PART0_Z_RANOTPA_3 1 | |
57 | #define PART0_NZ_RANOTPA_0 1 | |
58 | #define PART0_NZ_RANOTPA_1 1 | |
59 | #define PART0_NZ_RANOTPA_2 1 | |
60 | #define PART0_NZ_RANOTPA_3 1 | |
61 | ||
62 | #include "hboot.s" | |
63 | ||
64 | /************************************************************************ | |
65 | Test case code start | |
66 | ************************************************************************/ | |
67 | ||
68 | .text | |
69 | .global main | |
70 | ||
71 | main: /* test begin */ | |
72 | ||
73 | th_fork(begin_thread) | |
74 | ||
75 | EXIT_BAD | |
76 | ||
77 | begin_thread_0: | |
78 | EXIT_GOOD | |
79 | ||
80 | begin_thread_1: | |
81 | EXIT_GOOD | |
82 | ||
83 | begin_thread_2: | |
84 | EXIT_GOOD | |
85 | ||
86 | begin_thread_3: | |
87 | EXIT_GOOD | |
88 | ||
89 | begin_thread_4: | |
90 | EXIT_GOOD | |
91 | ||
92 | begin_thread_5: | |
93 | EXIT_GOOD | |
94 | ||
95 | begin_thread_6: | |
96 | EXIT_GOOD | |
97 | ||
98 | begin_thread_7: | |
99 | EXIT_GOOD | |
100 | ||
101 | /************************************************************************ | |
102 | Test case data start | |
103 | ************************************************************************/ | |
104 | .data | |
105 | ||
106 | user_data_start: | |
107 | .word 0xD6B3479D | |
108 | .word 0xDB28926C | |
109 |