Last change
on this file since 110 was
101,
checked in by rosiere, 16 years ago
|
1) Add soc test
2) fix bug (Pc management, Decod and execute, Update prediction ...)
|
-
Property svn:keywords set to
Id
|
File size:
693 bytes
|
Line | |
---|
1 | #include "../include/Segment.h" |
---|
2 | #include "../../Common/include/Debug.h" |
---|
3 | |
---|
4 | namespace environment { |
---|
5 | namespace data { |
---|
6 | |
---|
7 | bool Segment::test (std::string name) |
---|
8 | { |
---|
9 | return (this->name == name); |
---|
10 | } |
---|
11 | |
---|
12 | bool Segment::test (uint32_t address, uint32_t size) |
---|
13 | { |
---|
14 | // _cout(DATA," * Segment::test\n"); |
---|
15 | // _cout(DATA," * address : %.8x\n",address ); |
---|
16 | // _cout(DATA," * size : %d\n" ,size ); |
---|
17 | // _cout(DATA," * segment base : %.8x\n",this->base); |
---|
18 | // _cout(DATA," * segment size : %.8x\n",this->size); |
---|
19 | |
---|
20 | bool res = (((address ) >= (this->base )) and |
---|
21 | ((address+size) <= (this->base+this->size))); |
---|
22 | |
---|
23 | return res; |
---|
24 | } |
---|
25 | |
---|
26 | }; |
---|
27 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.