system.cc (2665:a124942bacb8) | system.cc (2716:b9114064d77a) |
---|---|
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 | 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 |
235 Param<bool> bin; 236 VectorParam<std::string> binned_fns; 237 Param<bool> bin_int; 238 | |
239END_DECLARE_SIM_OBJECT_PARAMS(AlphaSystem) 240 241BEGIN_INIT_SIM_OBJECT_PARAMS(AlphaSystem) 242 243 INIT_PARAM(boot_cpu_frequency, "Frequency of the boot CPU"), 244 INIT_PARAM(physmem, "phsyical memory"), 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", ""), 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), | 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), |
253 INIT_PARAM_DFLT(system_rev, "Revision of system we are emulating", 1<<10), 254 INIT_PARAM_DFLT(bin, "is this system to be binned", false), 255 INIT_PARAM(binned_fns, "functions to be broken down and binned"), 256 INIT_PARAM_DFLT(bin_int, "is interrupt code binned seperately?", true) | 249 INIT_PARAM_DFLT(system_rev, "Revision of system we are emulating", 1<<10) |
257 258END_INIT_SIM_OBJECT_PARAMS(AlphaSystem) 259 260CREATE_SIM_OBJECT(AlphaSystem) 261{ 262 AlphaSystem::Params *p = new AlphaSystem::Params; 263 p->name = getInstanceName(); 264 p->boot_cpu_frequency = boot_cpu_frequency; 265 p->physmem = physmem; 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->system_type = system_type; 273 p->system_rev = system_rev; | 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; |
274 p->bin = bin; 275 p->binned_fns = binned_fns; 276 p->bin_int = bin_int; | |
277 return new AlphaSystem(p); 278} 279 280REGISTER_SIM_OBJECT("AlphaSystem", AlphaSystem) 281 282 | 267 return new AlphaSystem(p); 268} 269 270REGISTER_SIM_OBJECT("AlphaSystem", AlphaSystem) 271 272 |