system.cc (2902:695d4683916e) | system.cc (3138:6d4c1cc3af0b) |
---|---|
1/* 2 * Copyright (c) 2002-2006 The Regents of The University of Michigan 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; --- 138 unchanged lines hidden (view full) --- 147 Param<std::string> reset_bin; 148 Param<std::string> hypervisor_bin; 149 Param<std::string> openboot_bin; 150 151 Param<std::string> boot_osflags; 152 Param<std::string> readfile; 153 Param<unsigned int> init_param; 154 | 1/* 2 * Copyright (c) 2002-2006 The Regents of The University of Michigan 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; --- 138 unchanged lines hidden (view full) --- 147 Param<std::string> reset_bin; 148 Param<std::string> hypervisor_bin; 149 Param<std::string> openboot_bin; 150 151 Param<std::string> boot_osflags; 152 Param<std::string> readfile; 153 Param<unsigned int> init_param; 154 |
155 Param<bool> bin; 156 VectorParam<std::string> binned_fns; 157 Param<bool> bin_int; 158 | |
159END_DECLARE_SIM_OBJECT_PARAMS(SparcSystem) 160 161BEGIN_INIT_SIM_OBJECT_PARAMS(SparcSystem) 162 163 INIT_PARAM(boot_cpu_frequency, "Frequency of the boot CPU"), 164 INIT_PARAM(physmem, "phsyical memory"), 165 INIT_ENUM_PARAM(mem_mode, "Memory Mode, (1=atomic, 2=timing)", 166 System::MemoryModeStrings), 167 INIT_PARAM(kernel, "file that contains the kernel code"), 168 INIT_PARAM(reset_bin, "file that contains the reset code"), 169 INIT_PARAM(hypervisor_bin, "file that contains the hypervisor code"), 170 INIT_PARAM(openboot_bin, "file that contains the openboot code"), 171 INIT_PARAM_DFLT(boot_osflags, "flags to pass to the kernel during boot", 172 "a"), 173 INIT_PARAM_DFLT(readfile, "file to read startup script from", ""), 174 INIT_PARAM_DFLT(init_param, "numerical value to pass into simulator", 0), 175 INIT_PARAM_DFLT(system_type, "Type of system we are emulating", 34), | 155END_DECLARE_SIM_OBJECT_PARAMS(SparcSystem) 156 157BEGIN_INIT_SIM_OBJECT_PARAMS(SparcSystem) 158 159 INIT_PARAM(boot_cpu_frequency, "Frequency of the boot CPU"), 160 INIT_PARAM(physmem, "phsyical memory"), 161 INIT_ENUM_PARAM(mem_mode, "Memory Mode, (1=atomic, 2=timing)", 162 System::MemoryModeStrings), 163 INIT_PARAM(kernel, "file that contains the kernel code"), 164 INIT_PARAM(reset_bin, "file that contains the reset code"), 165 INIT_PARAM(hypervisor_bin, "file that contains the hypervisor code"), 166 INIT_PARAM(openboot_bin, "file that contains the openboot code"), 167 INIT_PARAM_DFLT(boot_osflags, "flags to pass to the kernel during boot", 168 "a"), 169 INIT_PARAM_DFLT(readfile, "file to read startup script from", ""), 170 INIT_PARAM_DFLT(init_param, "numerical value to pass into simulator", 0), 171 INIT_PARAM_DFLT(system_type, "Type of system we are emulating", 34), |
176 INIT_PARAM_DFLT(system_rev, "Revision of system we are emulating", 1<<10), 177 INIT_PARAM_DFLT(bin, "is this system to be binned", false), 178 INIT_PARAM(binned_fns, "functions to be broken down and binned"), 179 INIT_PARAM_DFLT(bin_int, "is interrupt code binned seperately?", true) | 172 INIT_PARAM_DFLT(system_rev, "Revision of system we are emulating", 1<<10) |
180 181END_INIT_SIM_OBJECT_PARAMS(SparcSystem) 182 183CREATE_SIM_OBJECT(SparcSystem) 184{ 185 SparcSystem::Params *p = new SparcSystem::Params; 186 p->name = getInstanceName(); 187 p->boot_cpu_frequency = boot_cpu_frequency; 188 p->physmem = physmem; 189 p->mem_mode = mem_mode; 190 p->kernel_path = kernel; 191 p->reset_bin = reset_bin; 192 p->hypervisor_bin = hypervisor_bin; 193 p->openboot_bin = openboot_bin; 194 p->boot_osflags = boot_osflags; 195 p->init_param = init_param; 196 p->readfile = readfile; 197 p->system_type = system_type; 198 p->system_rev = system_rev; | 173 174END_INIT_SIM_OBJECT_PARAMS(SparcSystem) 175 176CREATE_SIM_OBJECT(SparcSystem) 177{ 178 SparcSystem::Params *p = new SparcSystem::Params; 179 p->name = getInstanceName(); 180 p->boot_cpu_frequency = boot_cpu_frequency; 181 p->physmem = physmem; 182 p->mem_mode = mem_mode; 183 p->kernel_path = kernel; 184 p->reset_bin = reset_bin; 185 p->hypervisor_bin = hypervisor_bin; 186 p->openboot_bin = openboot_bin; 187 p->boot_osflags = boot_osflags; 188 p->init_param = init_param; 189 p->readfile = readfile; 190 p->system_type = system_type; 191 p->system_rev = system_rev; |
199 p->bin = bin; 200 p->binned_fns = binned_fns; 201 p->bin_int = bin_int; | |
202 return new SparcSystem(p); 203} 204 205REGISTER_SIM_OBJECT("SparcSystem", SparcSystem) 206 207 | 192 return new SparcSystem(p); 193} 194 195REGISTER_SIM_OBJECT("SparcSystem", SparcSystem) 196 197 |