throwing std::runtime on PC BSP fails

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Mar 15 06:37:07 UTC 2019


On 14/03/2019 21:30, Till Straumann wrote:
> On 3/14/19 1:06 PM, Heinz Junkes wrote:
>> The porting of Epics-7 to RTEMS 5 is almost finished.
>>
>> To run our tests we use Travis-Ci where we run qemu-i386.
>>   (I couldn't find a suitable emulator for the PowerPC, beatnik board. I do the tests on the hardware.)
> FWIW -- I have been using 'qemu-system-ppc' with the 'prep' machine in 
> the past (qemuprep BSP).

This seems to no longer work. If I start it with

qemu-system-ppc -M prep -cpu 604 -bios 
./powerpc-rtems5/c/qemuprep/lib/libbsp/powerpc/motorola_powerpc/qemu_fakerom/qemu_fakerom.bin 
-nographic -no-reboot -kernel 
./powerpc-rtems5/c/qemuprep/testsuites/samples/ticker.exe

it outputs nothing.

If I start Qemu and wait for GDB

qemu-system-ppc -M prep -cpu 604 -bios 
./powerpc-rtems5/c/qemuprep/lib/libbsp/powerpc/motorola_powerpc/qemu_fakerom/qemu_fakerom.bin 
-nographic -no-reboot -kernel 
/build/git-build/b-any/powerpc-rtems5/c/qemuprep/testsuites/samples/ticker.exe 
-s -S

and then load the ELF file via GDB it outputs a bit and then crashes:

-----------------------------------------
Welcome to rtems-5.0.0 (PowerPC/Generic (classic FPU)/qemuprep) on QEMU
-----------------------------------------
idreg 0 = 0x0
pci : Configuring interrupt routing for 'QEMU'
pci : Device 0:0x0e:0 supplied a bogus interrupt_pin 96
pci : Device 0:0x0f:0 supplied a bogus interrupt_pin 193
pci : Device 0:0x10:0 supplied a bogus interrupt_pin 123
pci : Device 0:0x10:1 supplied a bogus interrupt_pin 163
pci : Device 0:0x10:2 supplied a bogus interrupt_pin 33
pci : Device 0:0x10:3 supplied a bogus interrupt_pin 30
pci : Device 0:0x10:4 supplied a bogus interrupt_pin 162
pci : Device 0:0x10:5 supplied a bogus interrupt_pin 129
pci : Device 0:0x10:6 supplied a bogus interrupt_pin 8
pci : Device 0:0x11:0 supplied a bogus interrupt_pin 8
Cleared PCI errors: pci_stat was 0x50ff
Unable to clear PCI errors: still 0xf900 after 10 attempts

*** FATAL ***
fatal source: 9 (RTEMS_FATAL_SOURCE_EXCEPTION)
exception vector 3 (0x3)
   next PC or address of fault = 0x0001ddb4
   saved MSR = 0x00002032
   context = task, ISR nest level = 0
   thread dispatch disable level = 0
   R0  = 0x00004004 R1  = 0x0003a540 R2  = 0x0003119c R3  = 0xfffe0000
   R4  = 0x00000000 R5  = 0x00020000 R6  = 0x00000000 R7  = 0x00002000
   R8  = 0x00000000 R9  = 0xfffe0000 R10 = 0x00020000 R11 = 0x00000000
   R12 = 0x40880202 R13 = 0x00033630 R14 = 0x00000000 R15 = 0x00000000
   R16 = 0x00000000 R17 = 0x00000000 R18 = 0x00000000 R19 = 0x00000000
   R20 = 0x00000000 R21 = 0x00000000 R22 = 0x00000000 R23 = 0x00000000
   R24 = 0x00000000 R25 = 0x00000000 R26 = 0x00000000 R27 = 0x00000000
   R28 = 0x00030000 R29 = 0x00020000 R30 = 0xfffe0000 R31 = 0x00030dc8
   CR  = 0x20880204
   CTR = 0x00002000
   XER = 0x20000000
   LR  = 0x00007bd4
   DAR = 0xfffe0000
   executing thread pointer is NULLStack Trace:
   IP: 0x0001ddb4, LR: 0x00007bd4
--^ 0x00004004--^ 0x00003e5c--^ 0x00019140--^ 0x00008248--^ 0x000030ec
RTEMS version: 5.0.0.e01005d0a0c1adb455bf65518c37baf66a9ed4e0-modified
RTEMS tools: 7.4.0 20181206 (RTEMS 5, RSB 
e0aec65182449a4e22b820e773087636edaf5b32, Newlib 1d35a003f)
executing thread is NULL
Printing a stack trace for your convenience :-)

0x00017180--> 0x00017176--> 0x00017112--> 0x00094736--> 0x00095260
0x00055616--> 0x00039556
-----------------------------------------
Welcome to rtems-5.0.0 (PowerPC/Generic (classic FPU)/qemuprep) on QEMU
-----------------------------------------
idreg 0 = 0x1208029271
pci : Configuring interrupt routing for 'QEMU'
pci : Device 0:0x01:0 supplied a suspicious interrupt_line 11, using it 
anyway
unable to find the universe in pci config space
Skipping VME initialization...


*** BEGIN OF TEST CLOCK TICK ***
*** TEST VERSION: 5.0.0.e01005d0a0c1adb455bf65518c37baf66a9ed4e0-modified
*** TEST STATE: EXPECTED-PASS
*** TEST BUILD: RTEMS_NETWORKING RTEMS_POSIX_API
*** TEST TOOLS: 7.4.0 20181206 (RTEMS 5, RSB 
e0aec65182449a4e22b820e773087636edaf5b32, Newlib 1d35a003f)
TA1  - rtems_clock_get_tod - 09:00:00   12/31/1988
TA2  - rtems_clock_get_tod - 09:00:00   12/31/1988
TA3  - rtems_clock_get_tod - 09:00:00   12/31/1988
QEMU: Terminated

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the users mailing list