Ignore:
Timestamp:
Dec 19, 2008, 4:34:00 PM (16 years ago)
Author:
rosiere
Message:

1) Update Prediction Table : statistics
2) Size instruction address on 30 bits
3) Change Log File
4) Add debug_level in simulation configuration file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Common/include/Message.h

    r88 r97  
    4141#endif
    4242
    43 #ifdef LOG_FILE
    4443extern FILE * log_stream;
    45 void log_init (void);
     44FILE * log      (FILE * stream);
     45void   log_init (bool        have_file,
     46                 std::string directory,
     47                 std::string file="");
    4648
    4749#define fmsg(stream,arg...)                     \
    4850  do                                            \
    4951    {                                           \
    50       log_init();                               \
    51       fprintf(log_stream,arg);                  \
    52       fflush(log_stream);                       \
     52      FILE * _stream = log(stream);             \
     53      fprintf(_stream,arg);                     \
     54      fflush(_stream);                          \
    5355    } while (0)
    54 
    55 #else
    56 
    57 #define fmsg(stream,arg...)                     \
    58   do                                            \
    59     {                                           \
    60       fprintf(stream,arg);                      \
    61       fflush(stream);                           \
    62     } while (0)
    63 
    64 #endif
    6556
    6657#define fmsgDebug(stream,arg...)                \
Note: See TracChangeset for help on using the changeset viewer.