OpenCores

The openrisc bugtracker has been moved to: bugzilla.opencores.org. This page is read-only

Or1ksim memory profiler

Back to bugtracker overview.

Information:
Type :: BUG
Status :: CLOSED
Assigned to :: nobody

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

Comments:

Bennett, Jeremy Apr 21, 2010

Changes committed to SVN. Marking closed.

Jeremy

--
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: jeremy.bennett@embecosm.com
Web: www.embecosm.com

Bennett, Jeremy Feb 24, 2010

Vinay's patch

*** /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)", "", REG_ICASE,
  		       "Output mode (detailed, pretty, access " "or width)");
    mode_arg->sval[0] = "detailed";
    group = arg_int0 ("g", "group", "",
--- 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)", "", REG_ICASE | REG_EXTENDED,
  		       "Output mode (detailed, pretty, access " "or width)");
    mode_arg->sval[0] = "detailed";
    group = arg_int0 ("g", "group", "",
***************
*** 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
      {

Post a comment:
Login to post comments!

Back to bugtracker overview.

© copyright 1999-2012 OpenCores.org, equivalent to ORSoC AB, all rights reserved. OpenCores®, registered trademark.