Last change
on this file since 143 was
143,
checked in by rosiere, 14 years ago
|
1) change environment.sh
2) add lot of include
|
-
Property svn:keywords set to
Id
|
File size:
735 bytes
|
Rev | Line | |
---|
[80] | 1 | #ifndef ENVIRONMENT_CACHE_CACHE_ONELEVEL_ADDRESS_H |
---|
| 2 | #define ENVIRONMENT_CACHE_CACHE_ONELEVEL_ADDRESS_H |
---|
[78] | 3 | |
---|
| 4 | #include <iostream> |
---|
| 5 | #include <iomanip> |
---|
[143] | 6 | #include <stdint.h> |
---|
[78] | 7 | |
---|
[80] | 8 | namespace environment { |
---|
[78] | 9 | namespace cache { |
---|
| 10 | namespace cache_onelevel { |
---|
| 11 | |
---|
| 12 | class Address |
---|
| 13 | { |
---|
| 14 | public : uint32_t tag; |
---|
| 15 | public : uint32_t familly; |
---|
| 16 | public : uint32_t offset; |
---|
| 17 | |
---|
| 18 | friend std::ostream& operator<< (std::ostream& output, const Address &x) |
---|
| 19 | { |
---|
| 20 | output << std::hex |
---|
| 21 | << std::setw(8) << std::setfill('0') << x.tag << " " |
---|
| 22 | << std::setw(8) << std::setfill('0') << x.familly << " " |
---|
| 23 | << std::setw(8) << std::setfill('0') << x.offset |
---|
| 24 | << std::dec; |
---|
| 25 | |
---|
| 26 | return output; |
---|
| 27 | } |
---|
| 28 | }; |
---|
| 29 | |
---|
| 30 | }; |
---|
| 31 | }; |
---|
| 32 | }; |
---|
| 33 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.