71 char *ret = fgets(Line,
sizeof(Line),
fp);
73 panic(
"malformed file");
77 memProxy.
writeBlob(MemAddr << 2, (uint8_t *)&Data,
sizeof(Data));
94 while (Str[i] !=
'\0' && Str[i]==
' ')
98 while (Str[i] !=
'\0') {
99 if (Str[i] >=
'0' && Str[i] <=
'9') {
100 Digit = Str[
i] -
'0';
101 }
else if (Str[i] >=
'a' && Str[i] <=
'f') {
102 Digit = Str[
i] -
'a' + 10;
103 }
else if (Str[i] >=
'A' && Str[i] <=
'F') {
105 }
else if (Str[i] ==
' ' || Str[i] ==
'\n') {
HexFile(const std::string _filename)
const std::string filename
void parseLine(char *, Addr *, uint32_t *)
PortProxy Object Declaration.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
bool loadSections(PortProxy &memProxy)
This object is a proxy for a structural port, to be used for debug accesses.
virtual void writeBlob(Addr addr, const uint8_t *p, int size) const
Write size bytes from p to address.