openrisc / or1ksim

The OpenRISC 1000 architectural simulator
GNU General Public License v3.0
70 stars 43 forks source link

cuc doesn't seem to work #15

Closed stffrdhrn closed 4 years ago

stffrdhrn commented 4 years ago

This is running sim from git or1k-master, after fixing some memory corruption issues.

Running a simple hello world cuc fails with:

(sim) cuc
Entering OpenRISC Custom Unit Compiler command prompt
Using profile file "sim.profile" and memory profile file "sim.mprofile".
Analyzing. (log file "cu.log").
Using timings from "virtex.tim" at 4ns
Multicycle logic OFF, bursts ON, strong memory order.
Assuming OpenRISC standard calling convention.
Testing function _or1k_cache_init (000061ac - 000062b0)
Testing function _or1k_board_init_early (00006dc4 - 00006dc8)
Testing function _or1k_reent_init (000068c0 - 000068d0)
Testing function _or1k_init (000068d4 - 0000691c)
Testing function memset (0000459c - 000046f8)
Testing function _or1k_libc_impure_init (00006738 - 0000689c)
Testing function register_tm_clones (0000219c - 00002204)
Testing function frame_dummy (00002300 - 0000235c)
Testing function __do_global_ctors_aux (00006f54 - 00006fa4)
Testing function _init (00002004 - 00002024)
Testing function __libc_init_array (0000252c - 000025dc)
Testing function __register_exitproc (000027f4 - 00002868)
Testing function atexit (0000242c - 00002458)   
Testing function _or1k_board_init (00006dcc - 00006dd0)
Testing function foo (0000239c - 000023d0)
Testing function __getreent (0000375c - 00003ad0)
Testing function strlen (000026ec - 000027e0)

sim: ../../or1ksim/cuc/bb.c:378: detect_bb: Assertion `f->bb[0].prev[0] < 0' failed.
Aborted (core dumped)