Last change
on this file since 79 was
78,
checked in by rosiere, 16 years ago
|
Add :
- Execute_loop (must be test systemC)
- Prediction
- Direction : predifined scheme
- Branch Target Buffer
- iFetch_unit
- ifetch_queue
- pc management
- Decod_unit
- coming soon : support for custom operation
- Rename_unit
- RAT
- Free_list
- Dependence RAW check
- Load store unit pointer
- New Environnement (hierarchy_memory will remove in a next version)
Modif :
- Manage Custom Operation
- All component in execute_loop to use the new statistics management
Not Finish :
- Return Address Stack
- Environnement
|
File size:
681 bytes
|
Line | |
---|
1 | #ifndef morpheo_fromstring |
---|
2 | #define morpheo_fromstring |
---|
3 | |
---|
4 | /* |
---|
5 | * $Id$ |
---|
6 | * |
---|
7 | * [ Description ] |
---|
8 | * |
---|
9 | */ |
---|
10 | |
---|
11 | // #include <iosfwd> |
---|
12 | // #include <sstream> |
---|
13 | // #include <iomanip> |
---|
14 | #include <string> |
---|
15 | // #include <limits> |
---|
16 | |
---|
17 | namespace morpheo { |
---|
18 | |
---|
19 | template<typename T> inline T fromString (const std::string& x) |
---|
20 | { |
---|
21 | return static_cast<T>(x.c_str()); |
---|
22 | } |
---|
23 | |
---|
24 | template<> inline uint32_t fromString<uint32_t> (const std::string& x) |
---|
25 | { |
---|
26 | return static_cast<uint32_t>(atoi(x.c_str())); |
---|
27 | } |
---|
28 | |
---|
29 | template<> inline bool fromString<bool> (const std::string& x) |
---|
30 | { |
---|
31 | return atoi(x.c_str())!=0; |
---|
32 | } |
---|
33 | |
---|
34 | }; // end namespace morpheo |
---|
35 | |
---|
36 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.