system.cc (2902:695d4683916e) | system.cc (3125:febd811bccc6) |
---|---|
1/* 2 * Copyright (c) 2004-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; --- 185 unchanged lines hidden (view full) --- 194 SimpleEnumParam<System::MemoryMode> mem_mode; 195 196 Param<string> kernel; 197 Param<string> console; 198 Param<string> pal; 199 200 Param<string> boot_osflags; 201 Param<string> readfile; | 1/* 2 * Copyright (c) 2004-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; --- 185 unchanged lines hidden (view full) --- 194 SimpleEnumParam<System::MemoryMode> mem_mode; 195 196 Param<string> kernel; 197 Param<string> console; 198 Param<string> pal; 199 200 Param<string> boot_osflags; 201 Param<string> readfile; |
202 Param<string> symbolfile; |
|
202 Param<unsigned int> init_param; 203 204 Param<uint64_t> system_type; 205 Param<uint64_t> system_rev; 206 207END_DECLARE_SIM_OBJECT_PARAMS(LinuxAlphaSystem) 208 209BEGIN_INIT_SIM_OBJECT_PARAMS(LinuxAlphaSystem) 210 211 INIT_PARAM(boot_cpu_frequency, "Frequency of the boot CPU"), 212 INIT_PARAM(physmem, "phsyical memory"), 213 INIT_ENUM_PARAM(mem_mode, "Memory Mode, (1=atomic, 2=timing)", 214 System::MemoryModeStrings), 215 INIT_PARAM(kernel, "file that contains the kernel code"), 216 INIT_PARAM(console, "file that contains the console code"), 217 INIT_PARAM(pal, "file that contains palcode"), 218 INIT_PARAM_DFLT(boot_osflags, "flags to pass to the kernel during boot", 219 "a"), 220 INIT_PARAM_DFLT(readfile, "file to read startup script from", ""), | 203 Param<unsigned int> init_param; 204 205 Param<uint64_t> system_type; 206 Param<uint64_t> system_rev; 207 208END_DECLARE_SIM_OBJECT_PARAMS(LinuxAlphaSystem) 209 210BEGIN_INIT_SIM_OBJECT_PARAMS(LinuxAlphaSystem) 211 212 INIT_PARAM(boot_cpu_frequency, "Frequency of the boot CPU"), 213 INIT_PARAM(physmem, "phsyical memory"), 214 INIT_ENUM_PARAM(mem_mode, "Memory Mode, (1=atomic, 2=timing)", 215 System::MemoryModeStrings), 216 INIT_PARAM(kernel, "file that contains the kernel code"), 217 INIT_PARAM(console, "file that contains the console code"), 218 INIT_PARAM(pal, "file that contains palcode"), 219 INIT_PARAM_DFLT(boot_osflags, "flags to pass to the kernel during boot", 220 "a"), 221 INIT_PARAM_DFLT(readfile, "file to read startup script from", ""), |
222 INIT_PARAM_DFLT(symbolfile, "file to read symbols from", ""), |
|
221 INIT_PARAM_DFLT(init_param, "numerical value to pass into simulator", 0), 222 INIT_PARAM_DFLT(system_type, "Type of system we are emulating", 34), 223 INIT_PARAM_DFLT(system_rev, "Revision of system we are emulating", 1<<10) 224 225END_INIT_SIM_OBJECT_PARAMS(LinuxAlphaSystem) 226 227CREATE_SIM_OBJECT(LinuxAlphaSystem) 228{ 229 AlphaSystem::Params *p = new AlphaSystem::Params; 230 p->name = getInstanceName(); 231 p->boot_cpu_frequency = boot_cpu_frequency; 232 p->physmem = physmem; 233 p->mem_mode = mem_mode; 234 p->kernel_path = kernel; 235 p->console_path = console; 236 p->palcode = pal; 237 p->boot_osflags = boot_osflags; 238 p->init_param = init_param; 239 p->readfile = readfile; | 223 INIT_PARAM_DFLT(init_param, "numerical value to pass into simulator", 0), 224 INIT_PARAM_DFLT(system_type, "Type of system we are emulating", 34), 225 INIT_PARAM_DFLT(system_rev, "Revision of system we are emulating", 1<<10) 226 227END_INIT_SIM_OBJECT_PARAMS(LinuxAlphaSystem) 228 229CREATE_SIM_OBJECT(LinuxAlphaSystem) 230{ 231 AlphaSystem::Params *p = new AlphaSystem::Params; 232 p->name = getInstanceName(); 233 p->boot_cpu_frequency = boot_cpu_frequency; 234 p->physmem = physmem; 235 p->mem_mode = mem_mode; 236 p->kernel_path = kernel; 237 p->console_path = console; 238 p->palcode = pal; 239 p->boot_osflags = boot_osflags; 240 p->init_param = init_param; 241 p->readfile = readfile; |
242 p->symbolfile = symbolfile; |
|
240 p->system_type = system_type; 241 p->system_rev = system_rev; 242 return new LinuxAlphaSystem(p); 243} 244 245REGISTER_SIM_OBJECT("LinuxAlphaSystem", LinuxAlphaSystem) 246 | 243 p->system_type = system_type; 244 p->system_rev = system_rev; 245 return new LinuxAlphaSystem(p); 246} 247 248REGISTER_SIM_OBJECT("LinuxAlphaSystem", LinuxAlphaSystem) 249 |