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; --- 218 unchanged lines hidden (view full) --- 227 228 Param<std::string> boot_osflags; 229 Param<std::string> readfile; 230 Param<unsigned int> init_param; 231 232 Param<uint64_t> system_type; 233 Param<uint64_t> system_rev; 234 |
235END_DECLARE_SIM_OBJECT_PARAMS(AlphaSystem) 236 237BEGIN_INIT_SIM_OBJECT_PARAMS(AlphaSystem) 238 239 INIT_PARAM(boot_cpu_frequency, "Frequency of the boot CPU"), 240 INIT_PARAM(physmem, "phsyical memory"), 241 INIT_PARAM(kernel, "file that contains the kernel code"), 242 INIT_PARAM(console, "file that contains the console code"), 243 INIT_PARAM(pal, "file that contains palcode"), 244 INIT_PARAM_DFLT(boot_osflags, "flags to pass to the kernel during boot", 245 "a"), 246 INIT_PARAM_DFLT(readfile, "file to read startup script from", ""), 247 INIT_PARAM_DFLT(init_param, "numerical value to pass into simulator", 0), 248 INIT_PARAM_DFLT(system_type, "Type of system we are emulating", 34), |
249 INIT_PARAM_DFLT(system_rev, "Revision of system we are emulating", 1<<10) |
250 251END_INIT_SIM_OBJECT_PARAMS(AlphaSystem) 252 253CREATE_SIM_OBJECT(AlphaSystem) 254{ 255 AlphaSystem::Params *p = new AlphaSystem::Params; 256 p->name = getInstanceName(); 257 p->boot_cpu_frequency = boot_cpu_frequency; 258 p->physmem = physmem; 259 p->kernel_path = kernel; 260 p->console_path = console; 261 p->palcode = pal; 262 p->boot_osflags = boot_osflags; 263 p->init_param = init_param; 264 p->readfile = readfile; 265 p->system_type = system_type; 266 p->system_rev = system_rev; |
267 return new AlphaSystem(p); 268} 269 270REGISTER_SIM_OBJECT("AlphaSystem", AlphaSystem) 271 272 |