print mapping

This commit is contained in:
Janik Schlemminger
2014-09-06 20:21:43 +02:00
parent 30b1fbbd0c
commit 938dbb3fdb
5 changed files with 30 additions and 50 deletions

View File

@@ -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);