print mapping
This commit is contained in:
@@ -38,12 +38,10 @@ class xmlAddressDecoder
|
||||
{
|
||||
|
||||
public:
|
||||
//static std::string addressConfigURI;
|
||||
//static tinyxml2::XMLElement* addressmapping;
|
||||
|
||||
static tinyxml2::XMLElement* addressmapping;
|
||||
static inline xmlAddressDecoder& getInstance()
|
||||
{
|
||||
//if(decoder==NULL) std::cout<<"ERROR: AddressDecoder has been called before initialization"<<std::endl;
|
||||
static xmlAddressDecoder decoder(xmlAddressDecoder::addressmapping);
|
||||
return decoder;
|
||||
}
|
||||
@@ -51,17 +49,14 @@ static tinyxml2::XMLElement* addressmapping;
|
||||
static inline void Initialize(tinyxml2::XMLElement* mapping)
|
||||
{
|
||||
addressmapping = mapping;
|
||||
//decoder = xmlAddressDecoder(addressmapping);
|
||||
xmlAddressDecoder::getInstance();
|
||||
addressmapping = NULL;
|
||||
}
|
||||
|
||||
DecodedAddress decodeAddress(sc_dt::uint64 addr);
|
||||
|
||||
void print();
|
||||
private:
|
||||
|
||||
//static xmlAddressDecoder decoder;
|
||||
|
||||
//xmlAddressDecoder();
|
||||
xmlAddressDecoder(std::string URI);
|
||||
xmlAddressDecoder(tinyxml2::XMLElement* addressMap);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user