hex_file.cc (10231:cb2e6950956d) hex_file.cc (11793:ef606668d247)
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;

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

23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Jaidev Patwardhan
29 */
30
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;

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

23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Jaidev Patwardhan
29 */
30
31#include "base/loader/hex_file.hh"
32
31#include <cctype>
32#include <cstdio>
33#include <list>
34#include <string>
35
33#include <cctype>
34#include <cstdio>
35#include <list>
36#include <string>
37
36#include "base/loader/hex_file.hh"
37#include "base/loader/symtab.hh"
38#include "base/cprintf.hh"
38#include "base/cprintf.hh"
39#include "base/loader/symtab.hh"
39#include "mem/port_proxy.hh"
40
41using namespace std;
42/*
43 * Load a Hex File into memory. Currently only used with MIPS
44 * BARE_IRON mode. A hex file consists of [Address Data] tuples that
45 * get directly loaded into physical memory. The address specified is
46 * a word address (i.e., to get the byte address, shift left by 2) The

--- 94 unchanged lines hidden ---
40#include "mem/port_proxy.hh"
41
42using namespace std;
43/*
44 * Load a Hex File into memory. Currently only used with MIPS
45 * BARE_IRON mode. A hex file consists of [Address Data] tuples that
46 * get directly loaded into physical memory. The address specified is
47 * a word address (i.e., to get the byte address, shift left by 2) The

--- 94 unchanged lines hidden ---