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