system.cc (6378:4a2ff62c3b4f) | system.cc (6379:75d4aaf7dd54) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007 MIPS Technologies, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 37 unchanged lines hidden (view full) --- 46using namespace LittleEndianGuest; 47 48MipsSystem::MipsSystem(Params *p) : System(p) 49{ 50 51#if FULL_SYSTEM 52 if (p->bare_iron == true) { 53 hexFile = new HexFile(params()->hex_file_name); | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007 MIPS Technologies, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 37 unchanged lines hidden (view full) --- 46using namespace LittleEndianGuest; 47 48MipsSystem::MipsSystem(Params *p) : System(p) 49{ 50 51#if FULL_SYSTEM 52 if (p->bare_iron == true) { 53 hexFile = new HexFile(params()->hex_file_name); |
54 if (!hexFile->loadSections(&functionalPort, MipsISA::LoadAddrMask)) | 54 if (!hexFile->loadSections(&functionalPort)) |
55 panic("Could not load hex file\n"); 56 } 57 58 Addr addr = 0; 59 60 consoleSymtab = new SymbolTable; 61 62 --- 25 unchanged lines hidden (view full) --- 88 /** 89 * Copy the osflags (kernel arguments) into the consoles 90 * memory. (Presently Linux does not use the console service 91 * routine to get these command line arguments, but Tru64 and 92 * others do.) 93 */ 94 if (consoleSymtab->findAddress("env_booted_osflags", addr)) { 95 warn("writing addr starting from %#x", addr); | 55 panic("Could not load hex file\n"); 56 } 57 58 Addr addr = 0; 59 60 consoleSymtab = new SymbolTable; 61 62 --- 25 unchanged lines hidden (view full) --- 88 /** 89 * Copy the osflags (kernel arguments) into the consoles 90 * memory. (Presently Linux does not use the console service 91 * routine to get these command line arguments, but Tru64 and 92 * others do.) 93 */ 94 if (consoleSymtab->findAddress("env_booted_osflags", addr)) { 95 warn("writing addr starting from %#x", addr); |
96 cout << "-" << endl; | |
97 virtPort.writeBlob(addr, (uint8_t*)params()->boot_osflags.c_str(), 98 strlen(params()->boot_osflags.c_str())); 99 } 100 101 /** 102 * Set the hardware reset parameter block system type and revision 103 * information to Tsunami. 104 */ --- 54 unchanged lines hidden --- | 96 virtPort.writeBlob(addr, (uint8_t*)params()->boot_osflags.c_str(), 97 strlen(params()->boot_osflags.c_str())); 98 } 99 100 /** 101 * Set the hardware reset parameter block system type and revision 102 * information to Tsunami. 103 */ --- 54 unchanged lines hidden --- |