summaryrefslogtreecommitdiff
path: root/src/accelwattch
diff options
context:
space:
mode:
Diffstat (limited to 'src/accelwattch')
-rw-r--r--src/accelwattch/core.cc2
-rw-r--r--src/accelwattch/logic.cc2
-rw-r--r--src/accelwattch/processor.cc18
-rw-r--r--src/accelwattch/xmlParser.cc2
4 files changed, 13 insertions, 11 deletions
diff --git a/src/accelwattch/core.cc b/src/accelwattch/core.cc
index fe11e05..556ed6c 100644
--- a/src/accelwattch/core.cc
+++ b/src/accelwattch/core.cc
@@ -2195,7 +2195,7 @@ EXECU::EXECU(ParseXML* XML_interface, int ithCore_,
bypass.area.set_area(bypass.area.get_area()
+fpTagBypass->area.get_area());
}*/
- } /* if (coredynp.core_ty==Inorder) */
+ } /* if (coredynp.core_ty==Inorder) */
else { // OOO
if (coredynp.scheu_ty == PhysicalRegFile) {
/* For physical register based OOO,
diff --git a/src/accelwattch/logic.cc b/src/accelwattch/logic.cc
index 3d3a1a4..7f40189 100644
--- a/src/accelwattch/logic.cc
+++ b/src/accelwattch/logic.cc
@@ -656,7 +656,7 @@ FunctionalUnit::FunctionalUnit(ParseXML *XML_interface, int ithCore_,
}
per_access_energy *= 0.5; // According to ARM data embedded processor has
// much lower per acc energy
- } /* if (XML->sys.Embedded) */
+ } /* if (XML->sys.Embedded) */
else {
if (fu_type == FPU) {
num_fu = coredynp.num_fpus;
diff --git a/src/accelwattch/processor.cc b/src/accelwattch/processor.cc
index a86b96d..d5c7cdd 100644
--- a/src/accelwattch/processor.cc
+++ b/src/accelwattch/processor.cc
@@ -664,22 +664,24 @@ void Processor::displayDeviceType(int device_type_, uint32_t indent) {
switch (device_type_) {
case 0:
- cout << indent_str
- << "Device Type= " << "ITRS high performance device type" << endl;
+ cout << indent_str << "Device Type= "
+ << "ITRS high performance device type" << endl;
break;
case 1:
- cout << indent_str
- << "Device Type= " << "ITRS low standby power device type" << endl;
+ cout << indent_str << "Device Type= "
+ << "ITRS low standby power device type" << endl;
break;
case 2:
- cout << indent_str
- << "Device Type= " << "ITRS low operating power device type" << endl;
+ cout << indent_str << "Device Type= "
+ << "ITRS low operating power device type" << endl;
break;
case 3:
- cout << indent_str << "Device Type= " << "LP-DRAM device type" << endl;
+ cout << indent_str << "Device Type= "
+ << "LP-DRAM device type" << endl;
break;
case 4:
- cout << indent_str << "Device Type= " << "COMM-DRAM device type" << endl;
+ cout << indent_str << "Device Type= "
+ << "COMM-DRAM device type" << endl;
break;
default: {
cout << indent_str << "Unknown Device Type" << endl;
diff --git a/src/accelwattch/xmlParser.cc b/src/accelwattch/xmlParser.cc
index 9f01ebe..084a50d 100644
--- a/src/accelwattch/xmlParser.cc
+++ b/src/accelwattch/xmlParser.cc
@@ -3241,7 +3241,7 @@ XMLSTR XMLParserBase64Tool::encode(unsigned char *inbuf, unsigned int inlen,
*(curr++) = base64EncodeTable[j >> 18];
*(curr++) = base64EncodeTable[(j >> 12) & 0x3f];
*(curr++) = base64EncodeTable[(j >> 6) & 0x3f];
- *(curr++) = base64EncodeTable[(j) & 0x3f];
+ *(curr++) = base64EncodeTable[(j)&0x3f];
if (formatted) {
if (!k) {
*(curr++) = _CXML('\n');