summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/118/all/1622547
blob: d7330696888421a4488821cf0374f28e168fee33 (plain) (blame)
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
boot: 0.958
risc-v: 0.957
vnc: 0.955
permissions: 0.954
ppc: 0.948
PID: 0.947
socket: 0.945
hypervisor: 0.944
mistranslation: 0.943
architecture: 0.942
VMM: 0.942
arm: 0.941
peripherals: 0.938
network: 0.937
TCG: 0.937
debug: 0.935
files: 0.933
user-level: 0.933
performance: 0.931
semantic: 0.930
device: 0.930
assembly: 0.923
kernel: 0.923
virtual: 0.921
KVM: 0.919
register: 0.917
graphic: 0.916
x86: 0.915
i386: 0.792

qemu-system-sparc fatal error Trap 0x29 on Solaris 2.6

When trying to install Solaris 2.6 from original CDROM, qemu fail with the following error :

qemu: fatal: Trap 0x29 while interrupts disabled, Error state
pc: f0041280  npc: f0041284
%g0-7: 00000000 f0281800 08000000 ffffffff 00000000 f0243b88 00000001 f0244020
%o0-7: 40400ce2 40400ce2 00000000 404000e2 f0243b88 00000000 f023ffd8 f0057914 
%l0-7: 40000cc2 f009645c f0096460 00000002 00000209 00000004 00000007 f023ff90 
%i0-7: 00000042 404000e3 00000000 404000e3 e0000000 f028192a f0240038 f0096448 
%f00:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f08:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f16:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f24:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
psr: 40400cc2 (icc: -Z-- SPE: SP-) wim: 00000002
fsr: 00000000 y: 00000000

The command line was :

qemu-system-sparc -nographic -bios ./openbios-sparc32 -M SS-20 -hda ./36G.disk -m 512 -cdrom Solaris_2.6_Software_05_98.img -boot d -serial telnet:0.0.0.0:3000,server -smp 2,cores=2 -monitor null

It fails with a similar output when using bios ss20_v2.25_rom.

▶ qemu-system-sparc --version
QEMU emulator version 2.7.0, Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers

▶ uname -a
Linux xxx 4.7.1-1-ARCH #1 SMP PREEMPT Wed Aug 17 08:13:35 CEST 2016 x86_64 GNU/Linux

On Mon, Sep 12, 2016 at 12:13 PM, Mathieu Clabaut
<email address hidden> wrote:
> Public bug reported:
>
> When trying to install Solaris 2.6 from original CDROM, qemu fail with
> the following error :
>
> qemu: fatal: Trap 0x29 while interrupts disabled, Error state
> pc: f0041280  npc: f0041284
> %g0-7: 00000000 f0281800 08000000 ffffffff 00000000 f0243b88 00000001 f0244020
> %o0-7: 40400ce2 40400ce2 00000000 404000e2 f0243b88 00000000 f023ffd8 f0057914
> %l0-7: 40000cc2 f009645c f0096460 00000002 00000209 00000004 00000007 f023ff90
> %i0-7: 00000042 404000e3 00000000 404000e3 e0000000 f028192a f0240038 f0096448
> %f00:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
> %f08:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
> %f16:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
> %f24:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
> psr: 40400cc2 (icc: -Z-- SPE: SP-) wim: 00000002
> fsr: 00000000 y: 00000000
>
> The command line was :
>
> qemu-system-sparc -nographic -bios ./openbios-sparc32 -M SS-20 -hda
> ./36G.disk -m 512 -cdrom Solaris_2.6_Software_05_98.img -boot d -serial
> telnet:0.0.0.0:3000,server -smp 2,cores=2 -monitor null
>
> It fails with a similar output when using bios ss20_v2.25_rom.
>
> ▶ qemu-system-sparc --version
> QEMU emulator version 2.7.0, Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers
>
> ▶ uname -a
> Linux xxx 4.7.1-1-ARCH #1 SMP PREEMPT Wed Aug 17 08:13:35 CEST 2016 x86_64 GNU/Linux
>
> ** Affects: qemu
>      Importance: Undecided
>          Status: New
>
> --
> You received this bug notification because you are a member of qemu-
> devel-ml, which is subscribed to QEMU.
> https://bugs.launchpad.net/bugs/1622547
>
> Title:
>   qemu-system-sparc fatal error Trap 0x29 on Solaris 2.6
>
> Status in QEMU:
>   New
>
> Bug description:
>   When trying to install Solaris 2.6 from original CDROM, qemu fail with
>   the following error :
>
>   qemu: fatal: Trap 0x29 while interrupts disabled, Error state
>   pc: f0041280  npc: f0041284
>   %g0-7: 00000000 f0281800 08000000 ffffffff 00000000 f0243b88 00000001 f0244020
>   %o0-7: 40400ce2 40400ce2 00000000 404000e2 f0243b88 00000000 f023ffd8 f0057914
>   %l0-7: 40000cc2 f009645c f0096460 00000002 00000209 00000004 00000007 f023ff90
>   %i0-7: 00000042 404000e3 00000000 404000e3 e0000000 f028192a f0240038 f0096448
>   %f00:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
>   %f08:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
>   %f16:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
>   %f24:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
>   psr: 40400cc2 (icc: -Z-- SPE: SP-) wim: 00000002
>   fsr: 00000000 y: 00000000
>
>   The command line was :
>
>   qemu-system-sparc -nographic -bios ./openbios-sparc32 -M SS-20 -hda
>   ./36G.disk -m 512 -cdrom Solaris_2.6_Software_05_98.img -boot d
>   -serial telnet:0.0.0.0:3000,server -smp 2,cores=2 -monitor null
>
>   It fails with a similar output when using bios ss20_v2.25_rom.

AFAIR [1] SS-20 requires another CPU. Can you try the following options?
-cpu "TI SuperSparc 50"
or
-cpu "TI SuperSparc 60"
or
-cpu "Ross RT620"

(can't remember whether the latter was still supported in 2.6 though)

Artyom

1. http://tyom.blogspot.de/2010/05/sx-framebuffer-emulation.html

>
>   ▶ qemu-system-sparc --version
>   QEMU emulator version 2.7.0, Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers
>
>   ▶ uname -a
>   Linux xxx 4.7.1-1-ARCH #1 SMP PREEMPT Wed Aug 17 08:13:35 CEST 2016 x86_64 GNU/Linux
>



-- 
Regards,
Artyom Tarasenko

SPARC and PPC PReP under qemu blog: http://tyom.blogspot.com/search/label/qemu


Thanks a lot Artyom.
-cpu "TI SuperSparc 50" does the job…

This bug can be closed (sorry for the noise).

This still fails for me even when using that CPU option.  But it only fails with my just-compiled QEMU 2.8.0, NOT my distribution-provided QEMU 2.6.1.  

mike@ossy ~/qemu> sudo /usr/local/bin/qemu-system-sparc -bios ./ss20_v2.25_rom -M SS-20 -nographic -boot d -hda ./sol26_36G.disk -m 512 -cdrom /mymedia/Disk\ Sets/Solaris_2.6_SPARC/Solaris_2.6_Software_05_98.iso -serial telnet:0.0.0.0:3000,server -smp 2,cores=2 -cpu "TI SuperSparc 60" -net nic -net bridge,br=br0
QEMU 2.8.0 monitor - type 'help' for more information
(qemu) QEMU waiting for connection on: disconnected:telnet:0.0.0.0:3000,server
qemu: fatal: Trap 0x29 while interrupts disabled, Error state
pc: 0000e754  npc: 0000e758
%g0-7: 00000000 00010d88 00000000 00000000 00000000 00000000 00000000 00000000
%o0-7: f1201e20 ffffffff 00000000 ffffffff ffffffff ffffffff ffffffff 00011a38 
%l0-7: f1201e20 0000e754 0000e758 00000029 00000300 00003c1c 00000000 ffffffff 
%i0-7: 00013848 00000029 00000099 00000000 0edfe200 ffffffff ffffff40 00011a38 
%f00:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f08:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f16:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f24:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
psr: 404010c5 (icc: -Z-- SPE: SP-) wim: 00000000
fsr: 00000000 y: 00000000

fish: “sudo /usr/local/bin/qemu-system…” terminated by signal SIGABRT (Abort)


In the other window:
mike@ossy ~/qemu> telnet localhost 3000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Power-ON Reset
Connection closed by foreign host.




Just confirmed that it works in QEMU 2.7.1, which is strange, since 2.8.0 does not list any SPARC changes!

There were some improvements to TCG which I tested locally with quite a range of images (although I don't specifically have Solaris 2.6), and didn't see any regressions at the time.

Does dropping the -smp argument help at all? Otherwise are you able to attempt a git bisect or send me a link to the image privately to test?


Dropping SMP doesn't make a difference (I dropped it anyway since it doesn't make a second processor appear in the guest, and as I've learned it's currently emulated in one thread anyway). You don't need an image, just the SPARCstation-20 ROM file which can be had from a variety of sources:
910bd7306fcec38361fc4c3a2be50fa0  ss20_v2.25_rom
and with no images listed:
sudo /usr/src/qemu-2.8.0/build/sparc-softmmu/qemu-system-sparc -bios ./ss20_v2.25_rom -M SS-20 -nographic -m 512 -cpu "TI SuperSparc 60" -net nic -net bridge,br=br0
still get the error. I've never done a git bisect before but I've always wanted to, so I will try. :) 

That was fun! And we have a result:

fbb4bbb62e5603c991b880e25dc4bb30d342b944 is the first bad commit
commit fbb4bbb62e5603c991b880e25dc4bb30d342b944
Author: Richard Henderson <email address hidden>
Date:   Tue Jul 12 15:38:13 2016 -0700

    target-sparc: Implement ldstub_asi inline
    
    Tested-by: Mark Cave-Ayland <email address hidden>
    Signed-off-by: Richard Henderson <email address hidden>

:040000 040000 670db498d49d38bc878efccd55e39d03f074cadf 5052ce1f32ddf00646aaa9e37bb73e38b4e750f1 M	target-sparc


I verified that the last good commit not only boots the BIOS but also boots the OS properly (and faster than 2.7.1). 

Richard, can you please look at it?

The test case:

qemu-system-sparc -bios ./ss20_v2.25_rom -M SS-20 -nographic -m 512
-cpu "TI SuperSparc 60"

Kind regards,
Artyom

On Wed, Jan 25, 2017 at 5:16 PM, <email address hidden>
<email address hidden> wrote:
> That was fun! And we have a result:
>
> fbb4bbb62e5603c991b880e25dc4bb30d342b944 is the first bad commit
> commit fbb4bbb62e5603c991b880e25dc4bb30d342b944
> Author: Richard Henderson <email address hidden>
> Date:   Tue Jul 12 15:38:13 2016 -0700
>
>     target-sparc: Implement ldstub_asi inline
>
>     Tested-by: Mark Cave-Ayland <email address hidden>
>     Signed-off-by: Richard Henderson <email address hidden>
>
> :040000 040000 670db498d49d38bc878efccd55e39d03f074cadf
> 5052ce1f32ddf00646aaa9e37bb73e38b4e750f1 M      target-sparc
>
>
> I verified that the last good commit not only boots the BIOS but also boots the OS properly (and faster than 2.7.1).
>
> --
> You received this bug notification because you are a member of qemu-
> devel-ml, which is subscribed to QEMU.
> https://bugs.launchpad.net/bugs/1622547
>
> Title:
>   qemu-system-sparc fatal error Trap 0x29 on Solaris 2.6
>
> Status in QEMU:
>   New
>
> Bug description:
>   When trying to install Solaris 2.6 from original CDROM, qemu fail with
>   the following error :
>
>   qemu: fatal: Trap 0x29 while interrupts disabled, Error state
>   pc: f0041280  npc: f0041284
>   %g0-7: 00000000 f0281800 08000000 ffffffff 00000000 f0243b88 00000001 f0244020
>   %o0-7: 40400ce2 40400ce2 00000000 404000e2 f0243b88 00000000 f023ffd8 f0057914
>   %l0-7: 40000cc2 f009645c f0096460 00000002 00000209 00000004 00000007 f023ff90
>   %i0-7: 00000042 404000e3 00000000 404000e3 e0000000 f028192a f0240038 f0096448
>   %f00:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
>   %f08:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
>   %f16:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
>   %f24:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
>   psr: 40400cc2 (icc: -Z-- SPE: SP-) wim: 00000002
>   fsr: 00000000 y: 00000000
>
>   The command line was :
>
>   qemu-system-sparc -nographic -bios ./openbios-sparc32 -M SS-20 -hda
>   ./36G.disk -m 512 -cdrom Solaris_2.6_Software_05_98.img -boot d
>   -serial telnet:0.0.0.0:3000,server -smp 2,cores=2 -monitor null
>
>   It fails with a similar output when using bios ss20_v2.25_rom.
>
>   ▶ qemu-system-sparc --version
>   QEMU emulator version 2.7.0, Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers
>
>   ▶ uname -a
>   Linux xxx 4.7.1-1-ARCH #1 SMP PREEMPT Wed Aug 17 08:13:35 CEST 2016 x86_64 GNU/Linux
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qemu/+bug/1622547/+subscriptions
>



-- 
Regards,
Artyom Tarasenko

SPARC and PPC PReP under qemu blog: http://tyom.blogspot.com/search/label/qemu


On Fri, Jan 27, 2017 at 9:15 AM, Richard Henderson <email address hidden> wrote:
> Fixes the booting of ss20 roms.

Mike, can you please test this fix?

> Reported-by: Mark Cave-Ayland <email address hidden>

Initially Reported-by: Michael Russo <email address hidden>

> Signed-off-by: Richard Henderson <email address hidden>
> ---
>  target/sparc/translate.c | 27 +++++++++++++++++++++++++--
>  1 file changed, 25 insertions(+), 2 deletions(-)
>
> diff --git a/target/sparc/translate.c b/target/sparc/translate.c
> index 655060c..aa6734d 100644
> --- a/target/sparc/translate.c
> +++ b/target/sparc/translate.c
> @@ -2448,8 +2448,31 @@ static void gen_ldstub_asi(DisasContext *dc, TCGv dst, TCGv addr, int insn)
>          gen_ldstub(dc, dst, addr, da.mem_idx);
>          break;
>      default:
> -        /* ??? Should be DAE_invalid_asi.  */
> -        gen_exception(dc, TT_DATA_ACCESS);
> +        /* ??? In theory, this should be raise DAE_invalid_asi.
> +           But the SS-20 roms do ldstuba [%l0] #ASI_M_CTL, %o1.  */
> +        if (parallel_cpus) {
> +            gen_helper_exit_atomic(cpu_env);
> +        } else {
> +            TCGv_i32 r_asi = tcg_const_i32(da.asi);
> +            TCGv_i32 r_mop = tcg_const_i32(MO_UB);
> +            TCGv_i64 s64, t64;
> +
> +            save_state(dc);
> +            t64 = tcg_temp_new_i64();
> +            gen_helper_ld_asi(t64, cpu_env, addr, r_asi, r_mop);
> +
> +            s64 = tcg_const_i64(0xff);
> +            gen_helper_st_asi(cpu_env, addr, s64, r_asi, r_mop);
> +            tcg_temp_free_i64(s64);
> +            tcg_temp_free_i32(r_mop);
> +            tcg_temp_free_i32(r_asi);
> +
> +            tcg_gen_trunc_i64_tl(dst, t64);
> +            tcg_temp_free_i64(t64);
> +
> +            /* End the TB.  */
> +            dc->npc = DYNAMIC_PC;
> +        }
>          break;
>      }
>  }
> --
> 2.9.3
>



-- 
Regards,
Artyom Tarasenko

SPARC and PPC PReP under qemu blog: http://tyom.blogspot.com/search/label/qemu


Yep, this works great for the SS-20 ROM (tested with SS-5 ROM also). Boots all the way to OS (have to use -nographic but that's fine). Thanks!

On 27/01/17 12:57, Artyom Tarasenko wrote:

> On Fri, Jan 27, 2017 at 9:15 AM, Richard Henderson <email address hidden> wrote:
>> Fixes the booting of ss20 roms.
> 
> Mike, can you please test this fix?
> 
>> Reported-by: Mark Cave-Ayland <email address hidden>
> 
> Initially Reported-by: Michael Russo <email address hidden>
> 
>> Signed-off-by: Richard Henderson <email address hidden>

Thanks Richard.

I've given this a quick spin around my various SPARC images and it looks
good with no regressions, so:

Tested-by: Mark Cave-Ayland <email address hidden>

Also when resubmitting with the updated Reported-by above, can we also
CC qemu-stable to get this into the next 2.8 release?


ATB,

Mark.



Hi everyone,
Thanks for your hard work on SPARC emulation. Almost feels like I got my old SS5 and SS20 back.
What commit (if any) might I find the fix for SS20 in?
Thanks,
Vincent

BTW, the patch posted in comment #9 works for me as well on qemu 2.8.0.
Thanks

The fix has now been applied to git master (with a CC to qemu-stable) and so should appear in the upcoming 2.9.0 release as well as the stable 2.8.1 release.

Commit 3db010c3398d03646 has been released with 2.9.0, so setting the status to "Fix released"