Re: GDB and simulator

Posted:
Thu Mar 22, 2018 9:31 am
by upcFrost
Meh, ok, somehow managed to fix the code without using debugger. Man it sucks, but whatever

Re: GDB and simulator

Posted:
Wed Apr 04, 2018 12:33 pm
by olajep
Glad to see you were able solve it!
When passing --host to e-sim you also need to pass
"-ex environment operating" to e-gdb.
(e-sim is a frontend for e-run, 'e-sim --host ...' implies 'e-run --environment operating ...')
The GDB simulator framework provides three environments which the epiphany target maps as follows:
user:
For standalone single-core programs
Interrupts will stop the simulation.
Anything that puts the core in IDLE state, e.g. asserting RESETCORE, will stop the simulation.
workgroup_cfg section set by simulator
Command line options supported
Started from Entry point address in ELF header (usually the _start symbol)
virtual:
For standalone multi-core programs
workgroup_cfg section set by simulator
Started by triggering the SYNC interrupt
operating:
For programs with a host part
Corresponds to e-sim --host flag
Core started in IDLE mode
The default environment for e-gdb and e-run is 'user'
The default environment passed by e-sim to e-run is 'virtual'. The --host flag changes that to 'operating'
// Ola
Re: GDB and simulator

Posted:
Wed May 02, 2018 8:03 pm
by upcFrost
Thanks for the explanation, I think I'll really need it when I'll get to work with matmul example once again
