-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbenchmark.cpp
More file actions
235 lines (213 loc) · 12.5 KB
/
Copy pathbenchmark.cpp
File metadata and controls
235 lines (213 loc) · 12.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
#include <cinttypes>
#include <cstdint>
#if defined(ESP32)
#include <esp_task_wdt.h>
#endif
#include "bus.h"
/// benchmark without mmu
constexpr const uint8_t benchmark_raw[] {
0xc6, 0x15, 0x00, 0x02, 0x77, 0x00, 0xa2, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39,
0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f,
0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f,
0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x42, 0x65, 0x6e, 0x63, 0x68, 0x6d,
0x61, 0x72, 0x6b, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67,
0x2e, 0x2e, 0x2e, 0x0d, 0x0a, 0x00, 0x47, 0x6f, 0x21, 0x0d, 0x0a, 0x00,
0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x3a, 0x20, 0x00, 0x0d,
0x0a, 0x00, 0x02, 0x00, 0x37, 0x10, 0x84, 0xff, 0x77, 0x10, 0x82, 0xff,
0xc0, 0x15, 0x66, 0xff, 0x01, 0x12, 0xc1, 0x45, 0x80, 0x00, 0x48, 0x10,
0xc0, 0x1d, 0x70, 0xff, 0xc1, 0x1d, 0x6e, 0xff, 0xb7, 0x0a, 0x66, 0xff,
0x02, 0x00, 0xc2, 0x15, 0x5a, 0x02, 0xf7, 0x09, 0xb8, 0x01, 0xdf, 0x15,
0x88, 0x02, 0x40, 0x00, 0xdf, 0x15, 0xc0, 0x00, 0x42, 0x00, 0xc0, 0x15,
0x66, 0xff, 0xc8, 0x15, 0x41, 0x00, 0xdf, 0x15, 0x86, 0x02, 0x1c, 0x00,
0xdf, 0x15, 0xc0, 0x00, 0x1e, 0x00, 0xdf, 0x15, 0x86, 0x02, 0x04, 0x00,
0xdf, 0x15, 0xc0, 0x00, 0x06, 0x00, 0xdf, 0x15, 0x86, 0x02, 0x08, 0x00,
0xdf, 0x15, 0xc0, 0x00, 0x0a, 0x00, 0x9d, 0x00, 0xc2, 0x15, 0x72, 0x02,
0xf7, 0x09, 0x76, 0x01, 0xf7, 0x65, 0x01, 0x00, 0x0e, 0xff, 0x77, 0x0b,
0x0c, 0xff, 0x77, 0x0b, 0x0a, 0xff, 0xf7, 0x25, 0xf4, 0x01, 0x06, 0xff,
0x71, 0x07, 0xc0, 0x15, 0x53, 0x00, 0xc0, 0x65, 0x53, 0x00, 0xc0, 0xe5,
0x53, 0x00, 0x01, 0x10, 0x81, 0x11, 0x9f, 0x00, 0xc6, 0x15, 0x94, 0x00,
0xc6, 0x65, 0x54, 0x00, 0xc6, 0xe5, 0x54, 0x00, 0x46, 0x10, 0x9d, 0x00,
0xc7, 0x65, 0x02, 0x00, 0xa0, 0x00, 0xc0, 0x15, 0x2e, 0xa7, 0x17, 0x74,
0xfe, 0xff, 0xc1, 0x15, 0xd4, 0x02, 0x57, 0x74, 0x01, 0x00, 0xc2, 0x15,
0xff, 0x3f, 0x02, 0x72, 0xc0, 0x15, 0x07, 0x00, 0xc1, 0x15, 0x0f, 0x00,
0x02, 0x70, 0x01, 0x20, 0x01, 0x02, 0x00, 0x03, 0xc5, 0x15, 0x10, 0x00,
0x01, 0x10, 0xc1, 0x15, 0x1e, 0x02, 0x09, 0x10, 0x11, 0x10, 0x1f, 0x10,
0x1e, 0x02, 0x21, 0x10, 0x21, 0x10, 0x31, 0x10, 0x02, 0x00, 0x17, 0x10,
0x1e, 0x02, 0xc5, 0x0a, 0xf1, 0x02, 0x00, 0x0a, 0x00, 0x8a, 0xc0, 0x0a,
0xc0, 0x8a, 0x80, 0x0a, 0x80, 0x8a, 0x00, 0x0b, 0x00, 0x8b, 0xc0, 0x0b,
0xc0, 0x8b, 0x40, 0x0a, 0x40, 0x8a, 0x80, 0x0c, 0x80, 0x8c, 0xc0, 0x0c,
0xc0, 0x8c, 0x17, 0x74, 0x02, 0x00, 0x17, 0x74, 0xf3, 0xff, 0x02, 0x76,
0x40, 0x0b, 0x40, 0x8b, 0x80, 0x0b, 0xc0, 0x0d, 0x40, 0x0c, 0x40, 0x8c,
0x00, 0x0c, 0x00, 0x8c, 0xc0, 0x00, 0xc0, 0x65, 0x9c, 0x02, 0xc0, 0xe5,
0x9c, 0x02, 0x02, 0x78, 0xc0, 0x55, 0x53, 0x00, 0xc0, 0xd5, 0x53, 0x00,
0xc0, 0x45, 0x53, 0x00, 0xc0, 0xc5, 0x53, 0x00, 0xc0, 0x35, 0x53, 0x00,
0xc0, 0xb5, 0x53, 0x00, 0x00, 0x01, 0x00, 0x03, 0xf7, 0x09, 0x04, 0x00,
0x77, 0x00, 0x02, 0x00, 0x87, 0x00, 0x00, 0x89, 0x77, 0x00, 0x08, 0xff,
0x9f, 0x00, 0xc2, 0x15, 0x42, 0x02, 0xc1, 0x15, 0x0c, 0x02, 0xf7, 0x09,
0x32, 0x00, 0xc1, 0x15, 0x0a, 0x02, 0xf7, 0x09, 0x2a, 0x00, 0xc1, 0x15,
0x08, 0x02, 0xf7, 0x09, 0x22, 0x00, 0xd2, 0x95, 0x00, 0x00, 0xc2, 0x15,
0x78, 0x02, 0xf7, 0x09, 0x54, 0x00, 0xc2, 0x15, 0x42, 0x02, 0xf7, 0x09,
0x4c, 0x00, 0xc2, 0x15, 0x83, 0x02, 0xf7, 0x09, 0x44, 0x00, 0x00, 0x00,
0x77, 0x00, 0xfa, 0xff, 0x44, 0x9c, 0x01, 0x00, 0x17, 0x75, 0xfc, 0xff,
0xc4, 0x45, 0xf0, 0xff, 0xc4, 0x65, 0x32, 0x02, 0x12, 0x93, 0x44, 0x9c,
0x01, 0x00, 0xc4, 0x45, 0xf0, 0xff, 0xc4, 0x65, 0x32, 0x02, 0x12, 0x93,
0x44, 0x92, 0x17, 0x75, 0xfc, 0xff, 0xc4, 0x45, 0xf0, 0xff, 0xc4, 0x65,
0x32, 0x02, 0x12, 0x93, 0x44, 0x92, 0xc4, 0x45, 0xf0, 0xff, 0xc4, 0x65,
0x32, 0x02, 0x12, 0x93, 0x87, 0x00, 0x80, 0x92, 0x07, 0x03, 0xf7, 0x8b,
0x02, 0xfb, 0xfd, 0x80, 0x37, 0x90, 0xfe, 0xfa, 0x82, 0x0a, 0xf7, 0x01,
0x87, 0x00
};
constexpr const size_t benchmark_raw_len { 638 };
///
/// benchmark with mmu
constexpr const uint8_t benchmark_w_mmu_raw[] {
0xc6, 0x15, 0x00, 0x02, 0x77, 0x00, 0xa2, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39,
0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f,
0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f,
0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x42, 0x65, 0x6e, 0x63, 0x68, 0x6d,
0x61, 0x72, 0x6b, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67,
0x2e, 0x2e, 0x2e, 0x0d, 0x0a, 0x00, 0x47, 0x6f, 0x21, 0x0d, 0x0a, 0x00,
0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x3a, 0x20, 0x00, 0x0d,
0x0a, 0x00, 0x02, 0x00, 0x37, 0x10, 0x84, 0xff, 0x77, 0x10, 0x82, 0xff,
0xc0, 0x15, 0x66, 0xff, 0x01, 0x12, 0xc1, 0x45, 0x80, 0x00, 0x48, 0x10,
0xc0, 0x1d, 0x70, 0xff, 0xc1, 0x1d, 0x6e, 0xff, 0xb7, 0x0a, 0x66, 0xff,
0x02, 0x00, 0xc2, 0x15, 0x5a, 0x02, 0xf7, 0x09, 0x98, 0x02, 0xdf, 0x15,
0x88, 0x02, 0x40, 0x00, 0xdf, 0x15, 0xc0, 0x00, 0x42, 0x00, 0xc0, 0x15,
0x66, 0xff, 0xc8, 0x15, 0x41, 0x00, 0xdf, 0x15, 0x86, 0x02, 0x1c, 0x00,
0xdf, 0x15, 0xc0, 0x00, 0x1e, 0x00, 0xdf, 0x15, 0x86, 0x02, 0x04, 0x00,
0xdf, 0x15, 0xc0, 0x00, 0x06, 0x00, 0xdf, 0x15, 0x86, 0x02, 0x08, 0x00,
0xdf, 0x15, 0xc0, 0x00, 0x0a, 0x00, 0x98, 0x00, 0xdf, 0x15, 0x00, 0x00,
0xe0, 0xf4, 0xdf, 0x15, 0x80, 0x00, 0xe2, 0xf4, 0xdf, 0x15, 0x00, 0x01,
0xe4, 0xf4, 0xdf, 0x15, 0x80, 0x01, 0xe6, 0xf4, 0xdf, 0x15, 0x00, 0x02,
0xe8, 0xf4, 0xdf, 0x15, 0x80, 0x02, 0xea, 0xf4, 0xdf, 0x15, 0x00, 0x03,
0xec, 0xf4, 0xdf, 0x15, 0x80, 0xff, 0xee, 0xf4, 0xdf, 0x15, 0x00, 0x00,
0xf0, 0xf4, 0xdf, 0x15, 0x80, 0x00, 0xf2, 0xf4, 0xdf, 0x15, 0x00, 0x01,
0xf4, 0xf4, 0xdf, 0x15, 0x80, 0x01, 0xf6, 0xf4, 0xdf, 0x15, 0x00, 0x02,
0xf8, 0xf4, 0xdf, 0x15, 0x80, 0x02, 0xfa, 0xf4, 0xdf, 0x15, 0x00, 0x03,
0xfc, 0xf4, 0xdf, 0x15, 0x80, 0xff, 0xfe, 0xf4, 0xf7, 0x45, 0x10, 0x00,
0x28, 0xfc, 0xdf, 0x15, 0x06, 0x7f, 0xc0, 0xf4, 0xdf, 0x15, 0x06, 0x7f,
0xc2, 0xf4, 0xdf, 0x15, 0x06, 0x7f, 0xc4, 0xf4, 0xdf, 0x15, 0x06, 0x7f,
0xc6, 0xf4, 0xdf, 0x15, 0x06, 0x7f, 0xc8, 0xf4, 0xdf, 0x15, 0x06, 0x7f,
0xca, 0xf4, 0xdf, 0x15, 0x06, 0x7f, 0xcc, 0xf4, 0xdf, 0x15, 0x06, 0x7f,
0xce, 0xf4, 0xdf, 0x15, 0x06, 0x7f, 0xd0, 0xf4, 0xdf, 0x15, 0x06, 0x7f,
0xd2, 0xf4, 0xdf, 0x15, 0x06, 0x7f, 0xd4, 0xf4, 0xdf, 0x15, 0x06, 0x7f,
0xd6, 0xf4, 0xdf, 0x15, 0x06, 0x7f, 0xd8, 0xf4, 0xdf, 0x15, 0x06, 0x7f,
0xda, 0xf4, 0xdf, 0x15, 0x06, 0x7f, 0xdc, 0xf4, 0xdf, 0x15, 0x06, 0x7f,
0xde, 0xf4, 0xc2, 0x15, 0x72, 0x02, 0xf7, 0x09, 0x90, 0x01, 0x77, 0x00,
0xe0, 0x00, 0xc0, 0x15, 0x53, 0x00, 0xc0, 0x65, 0x53, 0x00, 0xc0, 0xe5,
0x53, 0x00, 0x01, 0x10, 0x81, 0x11, 0x9f, 0x00, 0xc6, 0x15, 0x94, 0x00,
0xc6, 0x65, 0x54, 0x00, 0xc6, 0xe5, 0x54, 0x00, 0x46, 0x10, 0x98, 0x00,
0xc7, 0x65, 0x02, 0x00, 0xa0, 0x00, 0xc0, 0x15, 0x2e, 0xa7, 0x17, 0x74,
0xfe, 0xff, 0xc1, 0x15, 0xd4, 0x02, 0x57, 0x74, 0x01, 0x00, 0xc2, 0x15,
0xff, 0x3f, 0x02, 0x72, 0xc0, 0x15, 0x07, 0x00, 0xc1, 0x15, 0x0f, 0x00,
0x02, 0x70, 0x01, 0x20, 0x01, 0x02, 0x00, 0x03, 0xc5, 0x15, 0x10, 0x00,
0x01, 0x10, 0xc1, 0x15, 0x1e, 0x02, 0x09, 0x10, 0x11, 0x10, 0x1f, 0x10,
0x1e, 0x02, 0x21, 0x10, 0x21, 0x10, 0x31, 0x10, 0x02, 0x00, 0x17, 0x10,
0x1e, 0x02, 0xc5, 0x0a, 0xf1, 0x02, 0x00, 0x0a, 0x00, 0x8a, 0xc0, 0x0a,
0xc0, 0x8a, 0x80, 0x0a, 0x80, 0x8a, 0x00, 0x0b, 0x00, 0x8b, 0xc0, 0x0b,
0xc0, 0x8b, 0x40, 0x0a, 0x40, 0x8a, 0x80, 0x0c, 0x80, 0x8c, 0xc0, 0x0c,
0xc0, 0x8c, 0x17, 0x74, 0x02, 0x00, 0x17, 0x74, 0xf3, 0xff, 0x02, 0x76,
0x40, 0x0b, 0x40, 0x8b, 0x80, 0x0b, 0xc0, 0x0d, 0x40, 0x0c, 0x40, 0x8c,
0x00, 0x0c, 0x00, 0x8c, 0xc0, 0x00, 0xc0, 0x65, 0x9c, 0x02, 0xc0, 0xe5,
0x9c, 0x02, 0x02, 0x78, 0xc0, 0x55, 0x53, 0x00, 0xc0, 0xd5, 0x53, 0x00,
0xc0, 0x45, 0x53, 0x00, 0xc0, 0xc5, 0x53, 0x00, 0xc0, 0x35, 0x53, 0x00,
0xc0, 0xb5, 0x53, 0x00, 0x00, 0x01, 0x00, 0x03, 0xf7, 0x09, 0x04, 0x00,
0x77, 0x00, 0x02, 0x00, 0x87, 0x00, 0x00, 0x89, 0x87, 0x00, 0xf7, 0x65,
0x01, 0x00, 0x64, 0xfd, 0x77, 0x0b, 0x62, 0xfd, 0x77, 0x0b, 0x60, 0xfd,
0xf7, 0x25, 0xf4, 0x01, 0x5c, 0xfd, 0x0c, 0x07, 0xf7, 0x09, 0x06, 0xff,
0xf7, 0x55, 0x01, 0x00, 0xbc, 0xfa, 0xf7, 0x09, 0xfc, 0xfe, 0xf7, 0x45,
0x01, 0x00, 0xb2, 0xfa, 0x77, 0x00, 0xd2, 0xff, 0x9f, 0x00, 0xc2, 0x15,
0x42, 0x02, 0xc1, 0x15, 0x0c, 0x02, 0xf7, 0x09, 0x32, 0x00, 0xc1, 0x15,
0x0a, 0x02, 0xf7, 0x09, 0x2a, 0x00, 0xc1, 0x15, 0x08, 0x02, 0xf7, 0x09,
0x22, 0x00, 0xd2, 0x95, 0x00, 0x00, 0xc2, 0x15, 0x78, 0x02, 0xf7, 0x09,
0x54, 0x00, 0xc2, 0x15, 0x42, 0x02, 0xf7, 0x09, 0x4c, 0x00, 0xc2, 0x15,
0x83, 0x02, 0xf7, 0x09, 0x44, 0x00, 0x00, 0x00, 0x77, 0x00, 0xfa, 0xff,
0x44, 0x9c, 0x01, 0x00, 0x17, 0x75, 0xfc, 0xff, 0xc4, 0x45, 0xf0, 0xff,
0xc4, 0x65, 0x32, 0x02, 0x12, 0x93, 0x44, 0x9c, 0x01, 0x00, 0xc4, 0x45,
0xf0, 0xff, 0xc4, 0x65, 0x32, 0x02, 0x12, 0x93, 0x44, 0x92, 0x17, 0x75,
0xfc, 0xff, 0xc4, 0x45, 0xf0, 0xff, 0xc4, 0x65, 0x32, 0x02, 0x12, 0x93,
0x44, 0x92, 0xc4, 0x45, 0xf0, 0xff, 0xc4, 0x65, 0x32, 0x02, 0x12, 0x93,
0x87, 0x00, 0x80, 0x92, 0x07, 0x03, 0xf7, 0x8b, 0x22, 0xfa, 0xfd, 0x80,
0x37, 0x90, 0x1e, 0xfa, 0x82, 0x0a, 0xf7, 0x01, 0x87, 0x00
};
constexpr const size_t benchmark_w_mmu_raw_len { 862 };
constexpr const uint16_t base { 01000 };
uint64_t get_count(bus *const b)
{
// NOTE: these locations depend on the version of benchmark.asm!
uint64_t count = 0;
for(int i=5; i>=0; i--) {
count <<= 8;
count |= b->read_byte(base + 8 + i);
}
return count;
}
void reset_benchmark(bus *const b, const bool with_mmu)
{
cpu *const c = b->getCpu();
c->reset();
b->reset(true);
if (with_mmu) {
for(uint16_t a = 0; a<benchmark_w_mmu_raw_len; a++)
b->write_byte(a + base, benchmark_w_mmu_raw[a]);
}
else {
for(uint16_t a = 0; a<benchmark_raw_len; a++)
b->write_byte(a + base, benchmark_raw[a]);
}
c->set_register(7, base);
}
void benchmark(console *const cnsl, bus *const b, kek_event_t *const stop_event, const bool verbose, const bool with_mmu)
{
cnsl->put_string_lf(format("verbose: %d, with mmu: %d", verbose, with_mmu));
reset_benchmark(b, with_mmu);
cpu *const c = b->getCpu();
*stop_event = EVENT_NONE;
if (verbose) {
cnsl->put_string_lf("please wait ~20 seconds");
uint64_t start_ts1 = get_us();
size_t cycle_count = 0;
uint64_t duration = 0;
while(load_relaxed_p(stop_event) == EVENT_NONE) {
uint16_t pc = c->getPC();
cycle_count++;
// c->step() may alter what is beneath pc, so this first
duration += c->calc_instruction_duration(pc);
c->step();
}
uint64_t end_ts1 = get_us();
double timing_comp1 = 10000000. / (end_ts1 - start_ts1); // kw11-l interrupt is not always exact 50 Hz
uint64_t count_slower = get_count(b) * timing_comp1;
reset_benchmark(b, with_mmu);
uint64_t start_ts2 = get_us();
*stop_event = EVENT_NONE;
while(load_relaxed_p(stop_event) == EVENT_NONE)
c->step();
uint64_t end_ts2 = get_us();
double timing_comp2 = 10000000. / (end_ts2 - start_ts2);
uint64_t count_faster = get_count(b) * timing_comp2;
double mul = count_faster / double(count_slower);
#if defined(TEENSY4_1)
cnsl->put_string_lf(format("benchmark count slow: %" PRIzu " (%.3f timer jitter compensation), count fast: %" PRIzu " (%.3f)", size_t(count_slower), timing_comp1, size_t(count_faster), timing_comp2));
cnsl->put_string_lf(format("benchmark (raw): %" PRIzu " instructions, emulated duration: %.3f seconds", cycle_count, duration / 1000000000.));
cnsl->put_string_lf(format("benchmark (compensated): %" PRIzu " instructions, emulated duration: %.3f seconds", size_t(cycle_count * mul), duration * mul / 1000000000.));
#else
cnsl->put_string_lf(format("benchmark count slow: %" PRIu64 " (%.3f timer jitter compensation), count fast: %" PRIu64 " (%.3f)", count_slower, timing_comp1, count_faster, timing_comp2));
cnsl->put_string_lf(format("benchmark (raw): %" PRIzu " instructions, emulated duration: %.3f seconds (or %" PRIu64 " ns)", cycle_count, duration / 1000000000., duration));
cnsl->put_string_lf(format("benchmark (compensated): %" PRIzu " instructions, emulated duration: %.3f seconds (or %" PRIu64 " ns)", size_t(cycle_count * mul), duration * mul / 1000000000., uint64_t(duration * mul)));
#endif
}
else {
cnsl->put_string_lf("please wait ~10 seconds");
while(load_relaxed_p(stop_event) == EVENT_NONE)
c->step();
}
}