Last change
on this file since 120 was
117,
checked in by rosiere, 15 years ago
|
1) Platforms : add new organization for test
2) Load_Store_Unit : add array to count nb_check in store_queue
3) Issue_queue and Core_Glue : rewrite the issue network
4) Special_Register_Unit : add reset value to register CID
5) Softwares : add multicontext test
6) Softwares : add SPECINT
7) Softwares : add MiBench?
7) Read_queue : inhib access for r0
8) Change Core_Glue (network) - dont yet support priority and load balancing scheme
|
-
Property svn:keywords set to
Id
|
File size:
808 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id: main.cpp 117 2009-05-16 14:42:39Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Generic/Queue/SelfTest/include/top.h" |
---|
9 | |
---|
10 | #ifndef MTI_SYSTEMC |
---|
11 | # ifndef SYSTEMC |
---|
12 | int main (int argc, char * argv[]) |
---|
13 | # else |
---|
14 | int sc_main (int argc, char * argv[]) |
---|
15 | # endif |
---|
16 | { |
---|
17 | int _return = EXIT_SUCCESS; |
---|
18 | |
---|
19 | try |
---|
20 | { |
---|
21 | top * my_top = new top ("my_top",argc,argv); |
---|
22 | |
---|
23 | my_top->test(); |
---|
24 | |
---|
25 | delete my_top; |
---|
26 | |
---|
27 | } |
---|
28 | catch (morpheo::ErrorMorpheo & error) |
---|
29 | { |
---|
30 | msgError(_("%s\n"),error.what ()); |
---|
31 | _return = EXIT_FAILURE; |
---|
32 | } |
---|
33 | |
---|
34 | try |
---|
35 | { |
---|
36 | if (_return == EXIT_SUCCESS) |
---|
37 | TEST_OK("Queue : no error"); |
---|
38 | else |
---|
39 | TEST_KO("Queue : a lot of error"); |
---|
40 | } |
---|
41 | catch (morpheo::ErrorMorpheo & error) |
---|
42 | { |
---|
43 | // msgError(_("<%s> :\n%s"),name.c_str(), error.what ()); |
---|
44 | _return = EXIT_FAILURE; |
---|
45 | } |
---|
46 | |
---|
47 | return _return; |
---|
48 | } |
---|
49 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.