system.cc (2902:695d4683916e) | system.cc (3125:febd811bccc6) |
---|---|
1/* 2 * Copyright (c) 2002-2005 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; --- 215 unchanged lines hidden (view full) --- 224 SimpleEnumParam<System::MemoryMode> mem_mode; 225 226 Param<std::string> kernel; 227 Param<std::string> console; 228 Param<std::string> pal; 229 230 Param<std::string> boot_osflags; 231 Param<std::string> readfile; | 1/* 2 * Copyright (c) 2002-2005 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; --- 215 unchanged lines hidden (view full) --- 224 SimpleEnumParam<System::MemoryMode> mem_mode; 225 226 Param<std::string> kernel; 227 Param<std::string> console; 228 Param<std::string> pal; 229 230 Param<std::string> boot_osflags; 231 Param<std::string> readfile; |
232 Param<std::string> symbolfile; |
|
232 Param<unsigned int> init_param; 233 234 Param<uint64_t> system_type; 235 Param<uint64_t> system_rev; 236 237END_DECLARE_SIM_OBJECT_PARAMS(AlphaSystem) 238 239BEGIN_INIT_SIM_OBJECT_PARAMS(AlphaSystem) 240 241 INIT_PARAM(boot_cpu_frequency, "Frequency of the boot CPU"), 242 INIT_PARAM(physmem, "phsyical memory"), 243 INIT_ENUM_PARAM(mem_mode, "Memory Mode, (1=atomic, 2=timing)", 244 System::MemoryModeStrings), 245 INIT_PARAM(kernel, "file that contains the kernel code"), 246 INIT_PARAM(console, "file that contains the console code"), 247 INIT_PARAM(pal, "file that contains palcode"), 248 INIT_PARAM_DFLT(boot_osflags, "flags to pass to the kernel during boot", 249 "a"), 250 INIT_PARAM_DFLT(readfile, "file to read startup script from", ""), | 233 Param<unsigned int> init_param; 234 235 Param<uint64_t> system_type; 236 Param<uint64_t> system_rev; 237 238END_DECLARE_SIM_OBJECT_PARAMS(AlphaSystem) 239 240BEGIN_INIT_SIM_OBJECT_PARAMS(AlphaSystem) 241 242 INIT_PARAM(boot_cpu_frequency, "Frequency of the boot CPU"), 243 INIT_PARAM(physmem, "phsyical memory"), 244 INIT_ENUM_PARAM(mem_mode, "Memory Mode, (1=atomic, 2=timing)", 245 System::MemoryModeStrings), 246 INIT_PARAM(kernel, "file that contains the kernel code"), 247 INIT_PARAM(console, "file that contains the console code"), 248 INIT_PARAM(pal, "file that contains palcode"), 249 INIT_PARAM_DFLT(boot_osflags, "flags to pass to the kernel during boot", 250 "a"), 251 INIT_PARAM_DFLT(readfile, "file to read startup script from", ""), |
252 INIT_PARAM_DFLT(symbolfile, "file to read symbols from", ""), |
|
251 INIT_PARAM_DFLT(init_param, "numerical value to pass into simulator", 0), 252 INIT_PARAM_DFLT(system_type, "Type of system we are emulating", 34), 253 INIT_PARAM_DFLT(system_rev, "Revision of system we are emulating", 1<<10) 254 255END_INIT_SIM_OBJECT_PARAMS(AlphaSystem) 256 257CREATE_SIM_OBJECT(AlphaSystem) 258{ 259 AlphaSystem::Params *p = new AlphaSystem::Params; 260 p->name = getInstanceName(); 261 p->boot_cpu_frequency = boot_cpu_frequency; 262 p->physmem = physmem; 263 p->mem_mode = mem_mode; 264 p->kernel_path = kernel; 265 p->console_path = console; 266 p->palcode = pal; 267 p->boot_osflags = boot_osflags; 268 p->init_param = init_param; 269 p->readfile = readfile; | 253 INIT_PARAM_DFLT(init_param, "numerical value to pass into simulator", 0), 254 INIT_PARAM_DFLT(system_type, "Type of system we are emulating", 34), 255 INIT_PARAM_DFLT(system_rev, "Revision of system we are emulating", 1<<10) 256 257END_INIT_SIM_OBJECT_PARAMS(AlphaSystem) 258 259CREATE_SIM_OBJECT(AlphaSystem) 260{ 261 AlphaSystem::Params *p = new AlphaSystem::Params; 262 p->name = getInstanceName(); 263 p->boot_cpu_frequency = boot_cpu_frequency; 264 p->physmem = physmem; 265 p->mem_mode = mem_mode; 266 p->kernel_path = kernel; 267 p->console_path = console; 268 p->palcode = pal; 269 p->boot_osflags = boot_osflags; 270 p->init_param = init_param; 271 p->readfile = readfile; |
272 p->symbolfile = symbolfile; |
|
270 p->system_type = system_type; 271 p->system_rev = system_rev; 272 return new AlphaSystem(p); 273} 274 275REGISTER_SIM_OBJECT("AlphaSystem", AlphaSystem) 276 277 | 273 p->system_type = system_type; 274 p->system_rev = system_rev; 275 return new AlphaSystem(p); 276} 277 278REGISTER_SIM_OBJECT("AlphaSystem", AlphaSystem) 279 280 |