Last change
on this file since 110 was
110,
checked in by rosiere, 15 years ago
|
1) OOO_egine : add stat to depiste low perf source
2) Commit : add stat
3) LSU_Pointer : retire - always ack (else combinatory loop). insert - max nb_inst_memory
4) TopLevel? : add debug_idle_time to stop combinatory loop.
5) Issue_queue : add reexecute_queue, new implementation (routage after issue_queue)
6) Decod / Predictor : add "can_continue"
|
-
Property svn:keywords set to
Id
|
File size:
1.4 KB
|
Rev | Line | |
---|
[110] | 1 | /* |
---|
| 2 | * $Id: main.cpp 110 2009-02-19 16:31:47Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/SelfTest/include/test.h" |
---|
| 9 | |
---|
| 10 | #define NB_PARAMS 0 |
---|
| 11 | |
---|
| 12 | void usage (int argc, char * argv[]) |
---|
| 13 | { |
---|
| 14 | err (_("<Usage> %s name_instance list_params.\n"),argv[0]); |
---|
| 15 | err (_("list_params is :\n")); |
---|
| 16 | err (_(" * ()\n")); |
---|
| 17 | |
---|
| 18 | exit (1); |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | #ifndef SYSTEMC |
---|
| 22 | int main (int argc, char * argv[]) |
---|
| 23 | #else |
---|
| 24 | int sc_main (int argc, char * argv[]) |
---|
| 25 | #endif |
---|
| 26 | { |
---|
| 27 | if (argc != static_cast<int>(2+NB_PARAMS)) |
---|
| 28 | usage (argc, argv); |
---|
| 29 | |
---|
| 30 | uint32_t x = 1; |
---|
| 31 | |
---|
| 32 | string name = argv[x++]; |
---|
| 33 | |
---|
| 34 | int _return = EXIT_SUCCESS; |
---|
| 35 | try |
---|
| 36 | { |
---|
| 37 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::Parameters * param = new morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::Parameters |
---|
| 38 | ( |
---|
| 39 | true // is_toplevel |
---|
| 40 | ); |
---|
| 41 | |
---|
| 42 | msg(_("%s"),param->print(0).c_str()); |
---|
| 43 | |
---|
| 44 | test (name,param); |
---|
| 45 | } |
---|
| 46 | catch (morpheo::ErrorMorpheo & error) |
---|
| 47 | { |
---|
| 48 | msg (_("<%s> :\n%s"),name.c_str(), error.what ()); |
---|
| 49 | _return = EXIT_FAILURE; |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | try |
---|
| 53 | { |
---|
| 54 | if (_return == EXIT_SUCCESS) |
---|
| 55 | TEST_OK("Meta_Predictor : no error"); |
---|
| 56 | else |
---|
| 57 | TEST_KO("Meta_Predictor : a lot of error"); |
---|
| 58 | } |
---|
| 59 | catch (morpheo::ErrorMorpheo & error) |
---|
| 60 | { |
---|
| 61 | // msg (_("<%s> :\n%s"),name.c_str(), error.what ()); |
---|
| 62 | _return = EXIT_FAILURE; |
---|
| 63 | } |
---|
| 64 | |
---|
| 65 | return (_return); |
---|
| 66 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.