OpenCores
Issue List
Or1ksim memory profiler #79
Closed jeremybennett opened this issue about 14 years ago
jeremybennett commented about 14 years ago

Vinay Patil noted that the mprofile utility must be run in REG_EXTENDED mode and proposed a patch on the OpenRISC forum.

jeremybennett commented about 14 years ago
<p> Vinay's patch </p> <pre> *** /opt/OR1x00/trunk/or1ksim-0.3.0/mprofiler.c 2008-10-11 11:05:13.000000000 +0200 --- mprofiler.c 2010-02-19 13:21:49.000000000 +0100 *************** *** 269,275 **** help = arg_lit0 ("h", "help", "print this help message"); mode_arg = arg_rex0 ("m", "mode", "(detailed|d)|(pretty|p)|(access|a)|" ! "(width|w)", "<m>", REG_ICASE, "Output mode (detailed, pretty, access " "or width)"); mode_arg->sval[0] = "detailed"; group = arg_int0 ("g", "group", "<n>", --- 269,275 ---- help = arg_lit0 ("h", "help", "print this help message"); mode_arg = arg_rex0 ("m", "mode", "(detailed|d)|(pretty|p)|(access|a)|" ! "(width|w)", "<m>", REG_ICASE | REG_EXTENDED, "Output mode (detailed, pretty, access " "or width)"); mode_arg->sval[0] = "detailed"; group = arg_int0 ("g", "group", "<n>", *************** *** 341,346 **** --- 341,347 ---- /* If version or help is requested, that is all that is printed out */ /* Sort out the mode */ + if ((0 == strcmp (mode_arg->sval[0], "detail")) || (0 == strcmp (mode_arg->sval[0], "d"))) { *************** *** 349,365 **** else if ((0 == strcmp (mode_arg->sval[0], "pretty")) || (0 == strcmp (mode_arg->sval[0], "p"))) { ! mode = MODE_DETAIL; } else if ((0 == strcmp (mode_arg->sval[0], "access")) || (0 == strcmp (mode_arg->sval[0], "a"))) { ! mode = MODE_DETAIL; } else if ((0 == strcmp (mode_arg->sval[0], "width")) || (0 == strcmp (mode_arg->sval[0], "w"))) { ! mode = MODE_DETAIL; } else { --- 350,366 ---- else if ((0 == strcmp (mode_arg->sval[0], "pretty")) || (0 == strcmp (mode_arg->sval[0], "p"))) { ! mode = MODE_PRETTY; } else if ((0 == strcmp (mode_arg->sval[0], "access")) || (0 == strcmp (mode_arg->sval[0], "a"))) { ! mode = MODE_ACCESS; } else if ((0 == strcmp (mode_arg->sval[0], "width")) || (0 == strcmp (mode_arg->sval[0], "w"))) { ! mode = MODE_WIDTH; } else { </pre>
jeremybennett commented almost 14 years ago
<p> Changes committed to SVN. Marking closed. </p> <p> Jeremy </p> <p> -- <br /> Tel: +44 (1590) 610184<br /> Cell: +44 (7970) 676050<br /> SkypeID: jeremybennett<br /> Email: <a href="mailto:jeremy.bennett@embecosm.com">jeremy.bennett@embecosm.com</a><br /> Web: <a href="http://www.embecosm.com">www.embecosm.com</a> </p>
jeremybennett closed this almost 14 years ago

Assignee
No one
Labels
Bug