bios-tables-test failing for x86_64 on ppc
Hello,
With rcutorture fixed, I am still seeing the following failure in -rc2. It is only for /x86_64/acpi/..., not for /i386/acpi/...; only on ppc host, not on ppc64 or ppc64le (so not endianness), nor on i586 (so not 32-bitness alone).
Alex was suggesting it may be a ppc TCG problem, but I'm not seeing anything suspicious in this QTest since v2.2.0:
3a9c86d tests: bios-tables-test: add support for testing bridges 71f4be2 bios-tables-test: split piix4 and q35 tests b8e665e qtests: Specify image format explicitly
Anyone any insights?
Regards,
Andreas
https://build.opensuse.org/package/live_build_log/Virtualization/qemu/openSUSE_Factory_PowerPC/ppc
[ 1672s] TEST: tests/bios-tables-test... (pid=21237)
[ 1674s] /x86_64/acpi/piix4/tcg:
qemu: fatal: Trying to execute code outside RAM or ROM at0x00181f9a000a0000
[ 1674s]
[ 1674s] EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663 [ 1674s] ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000 [ 1674s] EIP=0009fff3 EFL=00000046 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0 [ 1674s] ES =0000 00000000 0000ffff 00009300
[ 1674s] CS =f000 00000000 0000ffff 00009b00
[ 1674s] SS =0000 00000000 0000ffff 00009300
[ 1674s] DS =0000 00000000 0000ffff 00009300
[ 1674s] FS =0000 00000000 0000ffff 00009300
[ 1674s] GS =0000 00000000 0000ffff 00009300
[ 1674s] LDT=0000 00000000 0000ffff 00008200
[ 1674s] TR =0000 00000000 0000ffff 00008b00
[ 1674s] GDT= 00000000 0000ffff
[ 1674s] IDT= 00000000 0000ffff
[ 1674s] CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 [ 1674s] DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
[ 1674s] DR6=00000000ffff0ff0 DR7=0000000000000400
[ 1674s] CCS=00000000 CCD=00000000 CCO=ADDB
[ 1674s] EFER=0000000000000000
[ 1674s] FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
[ 1674s] FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 [ 1674s] FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 [ 1674s] FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 [ 1674s] FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 [ 1674s] XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000
[ 1674s] XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000
[ 1674s] XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000
[ 1674s] XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000
[ 1674s] FAIL
[ 1674s] GTester: last random seed: R02S483f68a24da31c9824b1f2d232e2f568 [ 1674s] (pid=21242)
[ 1675s] /x86_64/acpi/piix4/tcg/bridge:
qemu: fatal: Trying to execute code outside RAM or ROM at0x00181f9a000a0000
[ 1675s]
[ 1675s] EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663 [ 1675s] ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000 [ 1675s] EIP=0009fff3 EFL=00000046 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0 [ 1675s] ES =0000 00000000 0000ffff 00009300
[ 1675s] CS =f000 00000000 0000ffff 00009b00
[ 1675s] SS =0000 00000000 0000ffff 00009300
[ 1675s] DS =0000 00000000 0000ffff 00009300
[ 1675s] FS =0000 00000000 0000ffff 00009300
[ 1675s] GS =0000 00000000 0000ffff 00009300
[ 1675s] LDT=0000 00000000 0000ffff 00008200
[ 1675s] TR =0000 00000000 0000ffff 00008b00
[ 1675s] GDT= 00000000 0000ffff
[ 1675s] IDT= 00000000 0000ffff
[ 1675s] CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 [ 1675s] DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
[ 1675s] DR6=00000000ffff0ff0 DR7=0000000000000400
[ 1675s] CCS=00000000 CCD=00000000 CCO=ADDB
[ 1675s] EFER=0000000000000000
[ 1675s] FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
[ 1675s] FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 [ 1675s] FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 [ 1675s] FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 [ 1675s] FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 [ 1675s] XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000
[ 1675s] XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000
[ 1675s] XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000
[ 1675s] XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000
[ 1675s] Broken pipe
[ 1675s] FAIL
[ 1675s] GTester: last random seed: R02S6fc2bd41ce55463050eb0d38cb63fafe [ 1675s] (pid=21251)
[ 1677s] /x86_64/acpi/q35/tcg:
qemu: fatal: Trying to execute code outside RAM or ROM at0x00181f9a000a0000
[ 1677s]
[ 1677s] EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663 [ 1677s] ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000 [ 1677s] EIP=0009fff3 EFL=00000046 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0 [ 1677s] ES =0000 00000000 0000ffff 00009300
[ 1677s] CS =f000 00000000 0000ffff 00009b00
[ 1677s] SS =0000 00000000 0000ffff 00009300
[ 1677s] DS =0000 00000000 0000ffff 00009300
[ 1677s] FS =0000 00000000 0000ffff 00009300
[ 1677s] GS =0000 00000000 0000ffff 00009300
[ 1677s] LDT=0000 00000000 0000ffff 00008200
[ 1677s] TR =0000 00000000 0000ffff 00008b00
[ 1677s] GDT= 00000000 0000ffff
[ 1677s] IDT= 00000000 0000ffff
[ 1677s] CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 [ 1677s] DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
[ 1677s] DR6=00000000ffff0ff0 DR7=0000000000000400
[ 1677s] CCS=00000000 CCD=00000000 CCO=ADDB
[ 1677s] EFER=0000000000000000
[ 1677s] FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
[ 1677s] FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 [ 1677s] FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 [ 1677s] FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 [ 1677s] FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 [ 1677s] XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000
[ 1677s] XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000
[ 1677s] XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000
[ 1677s] XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000
[ 1677s] FAIL
[ 1677s] GTester: last random seed: R02S488e2518195e65f02ff5879e4b6fbb59 [ 1677s] (pid=21256)
[ 1679s] /x86_64/acpi/q35/tcg/bridge:
qemu: fatal: Trying to execute code outside RAM or ROM at0x00181f9a000a0000
[ 1679s]
[ 1679s] EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663 [ 1679s] ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000 [ 1679s] EIP=0009fff3 EFL=00000046 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0 [ 1679s] ES =0000 00000000 0000ffff 00009300
[ 1679s] CS =f000 00000000 0000ffff 00009b00
[ 1679s] SS =0000 00000000 0000ffff 00009300
[ 1679s] DS =0000 00000000 0000ffff 00009300
[ 1679s] FS =0000 00000000 0000ffff 00009300
[ 1679s] GS =0000 00000000 0000ffff 00009300
[ 1679s] LDT=0000 00000000 0000ffff 00008200
[ 1679s] TR =0000 00000000 0000ffff 00008b00
[ 1679s] GDT= 00000000 0000ffff
[ 1679s] IDT= 00000000 0000ffff
[ 1679s] CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 [ 1679s] DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
[ 1679s] DR6=00000000ffff0ff0 DR7=0000000000000400
[ 1679s] CCS=00000000 CCD=00000000 CCO=ADDB
[ 1679s] EFER=0000000000000000
[ 1679s] FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
[ 1679s] FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 [ 1679s] FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 [ 1679s] FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 [ 1679s] FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 [ 1679s] XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000
[ 1679s] XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000
[ 1679s] XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000
[ 1679s] XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000
[ 1679s] FAIL
[ 1679s] GTester: last random seed: R02Sa9dfd51acde20d2962c568bb1c52a694 [ 1679s] (pid=21261)
[ 1679s] FAIL: tests/bios-tables-test
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton; HRB 21284 (AG Nürnberg)
Quoted 7 lines · Andreas Färber
Hello,
With rcutorture fixed, I am still seeing the following failure in -rc2. It is only for /x86_64/acpi/..., not for /i386/acpi/...; only on ppc host, not on ppc64 or ppc64le (so not endianness), nor on i586 (so not 32-bitness alone).
Quoted 6 lines
Alex was suggesting it may be a ppc TCG problem, but I'm not seeing anything suspicious in this QTest since v2.2.0:
3a9c86d tests: bios-tables-test: add support for testing bridges 71f4be2 bios-tables-test: split piix4 and q35 tests b8e665e qtests: Specify image format explicitly
This is basically the only test in "make check" that tries to actually execute any TCG code, so it's a bit of a canary for general TCG issues. If you try just running a random guest on this QEMU (eg qemu-system-i386 and see if it can at least execute the BIOS properly) does it work or crash?
thanks
-- PMM
Quoted 7 lines · On Wed, 08 Apr 2015 17:19:21 +0200 Andreas Färber <[email protected]> wrote:
Hello,
With rcutorture fixed, I am still seeing the following failure in -rc2. It is only for /x86_64/acpi/..., not for /i386/acpi/...; only on ppc host, not on ppc64 or ppc64le (so not endianness), nor on i586 (so not 32-bitness alone).
Quoted 6 lines
Alex was suggesting it may be a ppc TCG problem, but I'm not seeing anything suspicious in this QTest since v2.2.0:
3a9c86d tests: bios-tables-test: add support for testing bridges 71f4be2 bios-tables-test: split piix4 and q35 tests b8e665e qtests: Specify image format explicitly
It doesn't look like above commits should affect execution.
Quoted 170 lines
Anyone any insights?
Regards,
Andreashttps://build.opensuse.org/package/live_build_log/Virtualization/qemu/openSUSE_Factory_PowerPC/ppc
[ 1672s] TEST: tests/bios-tables-test... (pid=21237)
[ 1674s] /x86_64/acpi/piix4/tcg:
qemu: fatal: Trying to execute code outside RAM or ROM at0x00181f9a000a0000
[ 1674s]
[ 1674s] EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663 [ 1674s] ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000 [ 1674s] EIP=0009fff3 EFL=00000046 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0 [ 1674s] ES =0000 000000000000ffff00009300
[ 1674s] CS =f000 000000000000ffff00009b00
[ 1674s] SS =0000 000000000000ffff00009300
[ 1674s] DS =0000 000000000000ffff00009300
[ 1674s] FS =0000 000000000000ffff00009300
[ 1674s] GS =0000 000000000000ffff00009300
[ 1674s] LDT=0000 000000000000ffff00008200
[ 1674s] TR =0000 000000000000ffff00008b00
[ 1674s] GDT= 000000000000ffff
[ 1674s] IDT= 000000000000ffff
[ 1674s] CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 [ 1674s] DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
[ 1674s] DR6=00000000ffff0ff0 DR7=0000000000000400
[ 1674s] CCS=00000000 CCD=00000000 CCO=ADDB
[ 1674s] EFER=0000000000000000
[ 1674s] FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
[ 1674s] FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 [ 1674s] FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 [ 1674s] FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 [ 1674s] FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 [ 1674s] XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000
[ 1674s] XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000
[ 1674s] XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000
[ 1674s] XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000
[ 1674s] FAIL
[ 1674s] GTester: last random seed: R02S483f68a24da31c9824b1f2d232e2f568 [ 1674s] (pid=21242)
[ 1675s] /x86_64/acpi/piix4/tcg/bridge:
qemu: fatal: Trying to execute code outside RAM or ROM at0x00181f9a000a0000
[ 1675s]
[ 1675s] EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663 [ 1675s] ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000 [ 1675s] EIP=0009fff3 EFL=00000046 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0 [ 1675s] ES =0000 000000000000ffff00009300
[ 1675s] CS =f000 000000000000ffff00009b00
[ 1675s] SS =0000 000000000000ffff00009300
[ 1675s] DS =0000 000000000000ffff00009300
[ 1675s] FS =0000 000000000000ffff00009300
[ 1675s] GS =0000 000000000000ffff00009300
[ 1675s] LDT=0000 000000000000ffff00008200
[ 1675s] TR =0000 000000000000ffff00008b00
[ 1675s] GDT= 000000000000ffff
[ 1675s] IDT= 000000000000ffff
[ 1675s] CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 [ 1675s] DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
[ 1675s] DR6=00000000ffff0ff0 DR7=0000000000000400
[ 1675s] CCS=00000000 CCD=00000000 CCO=ADDB
[ 1675s] EFER=0000000000000000
[ 1675s] FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
[ 1675s] FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 [ 1675s] FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 [ 1675s] FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 [ 1675s] FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 [ 1675s] XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000
[ 1675s] XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000
[ 1675s] XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000
[ 1675s] XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000
[ 1675s] Broken pipe
[ 1675s] FAIL
[ 1675s] GTester: last random seed: R02S6fc2bd41ce55463050eb0d38cb63fafe [ 1675s] (pid=21251)
[ 1677s] /x86_64/acpi/q35/tcg:
qemu: fatal: Trying to execute code outside RAM or ROM at0x00181f9a000a0000
[ 1677s]
[ 1677s] EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663 [ 1677s] ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000 [ 1677s] EIP=0009fff3 EFL=00000046 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0 [ 1677s] ES =0000 000000000000ffff00009300
[ 1677s] CS =f000 000000000000ffff00009b00
[ 1677s] SS =0000 000000000000ffff00009300
[ 1677s] DS =0000 000000000000ffff00009300
[ 1677s] FS =0000 000000000000ffff00009300
[ 1677s] GS =0000 000000000000ffff00009300
[ 1677s] LDT=0000 000000000000ffff00008200
[ 1677s] TR =0000 000000000000ffff00008b00
[ 1677s] GDT= 000000000000ffff
[ 1677s] IDT= 000000000000ffff
[ 1677s] CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 [ 1677s] DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
[ 1677s] DR6=00000000ffff0ff0 DR7=0000000000000400
[ 1677s] CCS=00000000 CCD=00000000 CCO=ADDB
[ 1677s] EFER=0000000000000000
[ 1677s] FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
[ 1677s] FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 [ 1677s] FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 [ 1677s] FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 [ 1677s] FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 [ 1677s] XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000
[ 1677s] XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000
[ 1677s] XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000
[ 1677s] XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000
[ 1677s] FAIL
[ 1677s] GTester: last random seed: R02S488e2518195e65f02ff5879e4b6fbb59 [ 1677s] (pid=21256)
[ 1679s] /x86_64/acpi/q35/tcg/bridge:
qemu: fatal: Trying to execute code outside RAM or ROM at0x00181f9a000a0000
[ 1679s]
[ 1679s] EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663 [ 1679s] ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000 [ 1679s] EIP=0009fff3 EFL=00000046 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0 [ 1679s] ES =0000 000000000000ffff00009300
[ 1679s] CS =f000 000000000000ffff00009b00
[ 1679s] SS =0000 000000000000ffff00009300
[ 1679s] DS =0000 000000000000ffff00009300
[ 1679s] FS =0000 000000000000ffff00009300
[ 1679s] GS =0000 000000000000ffff00009300
[ 1679s] LDT=0000 000000000000ffff00008200
[ 1679s] TR =0000 000000000000ffff00008b00
[ 1679s] GDT= 000000000000ffff
[ 1679s] IDT= 000000000000ffff
[ 1679s] CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 [ 1679s] DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
[ 1679s] DR6=00000000ffff0ff0 DR7=0000000000000400
[ 1679s] CCS=00000000 CCD=00000000 CCO=ADDB
[ 1679s] EFER=0000000000000000
[ 1679s] FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
[ 1679s] FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 [ 1679s] FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 [ 1679s] FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 [ 1679s] FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 [ 1679s] XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000
[ 1679s] XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000
[ 1679s] XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000
[ 1679s] XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000
[ 1679s] FAIL
[ 1679s] GTester: last random seed: R02Sa9dfd51acde20d2962c568bb1c52a694 [ 1679s] (pid=21261)
[ 1679s] FAIL: tests/bios-tables-test
Am 08.04.2015 um 17:22 schrieb Peter Maydell:
Quoted 15 lines · Andreas Färber
Quoted 7 lines
Hello,
With rcutorture fixed, I am still seeing the following failure in -rc2. It is only for /x86_64/acpi/..., not for /i386/acpi/...; only on ppc host, not on ppc64 or ppc64le (so not endianness), nor on i586 (so not 32-bitness alone).
Quoted 6 lines
Alex was suggesting it may be a ppc TCG problem, but I'm not seeing anything suspicious in this QTest since v2.2.0:
3a9c86d tests: bios-tables-test: add support for testing bridges 71f4be2 bios-tables-test: split piix4 and q35 tests b8e665e qtests: Specify image format explicitly
Quoted 5 lines
This is basically the only test in "make check" that tries to actually execute any TCG code, so it's a bit of a canary for general TCG issues. If you try just running a random guest on this QEMU (eg qemu-system-i386 and see if it can at least execute the BIOS properly) does it work or crash?
I've resorted to setting up a ppc chroot on ppc64, and I can reproduce that qemu-system-i386 shows SeaBIOS okay, but qemu-system-x86_64 immediately aborts with the quoted error.
Regards,
Andreas
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton; HRB 21284 (AG Nürnberg)
Quoted 3 lines · Andreas Färber
I've resorted to setting up a ppc chroot on ppc64, and I can reproduce that qemu-system-i386 shows SeaBIOS okay, but qemu-system-x86_64 immediately aborts with the quoted error.
Yeah, I can repro on the gcc compile farm's fedora ppc64 box. (I didn't need to use a chroot, it was enough to pass configure "-cpu ppc" and then it uses -m32 in ldflags and cflags.)
Looks like we fail on the first insn:
0x00000000fffffff0: ljmp $0xf000,$0xe05b
should take us to0x00000000000fe05b: cmpl $0x0,%cs:0x6ac8
but on ppc32 we end up at:0x000fe05b00000000: add %al,(%bx,%si)
and then spend a long time galloping through page upon
page of "add %al,(%bx,%si)" before finally falling
off the end and aborting.
Looking at the generated TCG, I suspect the problem is that tcg_gen_st_i64() isn't writing the two i32 input values in the right order for the case where the host is a 32-bit bigendian system...
-- PMM
Quoted 4 lines · Peter Maydell
Looking at the generated TCG, I suspect the problem is that
tcg_gen_st_i64()isn't writing the two i32 input values in the right order for the case where the host is a 32-bit bigendian system...
Yep. Commit 951c6300f7 out-of-lined the 32-bit-host versions of tcg_gen_{ld,st}_i64, and in the process inadvertently changed an #ifdef HOST_WORDS_BIGENDIAN to #ifdef TCG_TARGET_WORDS_BIGENDIAN. Since the latter doesn't get defined anywhere we always get the LE host behaviour even on BE hosts. Switching it back to HOST_WORDS_BIGENDIAN fixes this. Patch coming up.
-- PMM