hex_file.cc (8852:c744483edfcf) hex_file.cc (9086:496304c8017d)
1/*
2 * Copyright (c) 2007 MIPS Technologies, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 42 unchanged lines hidden (view full) ---

51{
52 fp = fopen(filename.c_str(), "r");
53 if (fp == NULL)
54 panic("Unable to open %s\n", filename.c_str());
55}
56
57HexFile::~HexFile()
58{
1/*
2 * Copyright (c) 2007 MIPS Technologies, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 42 unchanged lines hidden (view full) ---

51{
52 fp = fopen(filename.c_str(), "r");
53 if (fp == NULL)
54 panic("Unable to open %s\n", filename.c_str());
55}
56
57HexFile::~HexFile()
58{
59 if (fp != NULL)
60 fclose(fp);
59}
60
61bool
62HexFile::loadSections(PortProxy& memProxy)
63{
64 char Line[64];
65 Addr MemAddr;
66 uint32_t Data;

--- 72 unchanged lines hidden ---
61}
62
63bool
64HexFile::loadSections(PortProxy& memProxy)
65{
66 char Line[64];
67 Addr MemAddr;
68 uint32_t Data;

--- 72 unchanged lines hidden ---