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; --- 95 unchanged lines hidden (view full) --- 104 105 Param<string> boot_osflags; 106 Param<string> readfile; 107 Param<unsigned int> init_param; 108 109 Param<uint64_t> system_type; 110 Param<uint64_t> system_rev; 111 |
112END_DECLARE_SIM_OBJECT_PARAMS(FreebsdAlphaSystem) 113 114BEGIN_INIT_SIM_OBJECT_PARAMS(FreebsdAlphaSystem) 115 116 INIT_PARAM(boot_cpu_frequency, "Frequency of the boot CPU"), 117 INIT_PARAM(physmem, "phsyical memory"), 118 INIT_PARAM(kernel, "file that contains the kernel code"), 119 INIT_PARAM(console, "file that contains the console code"), 120 INIT_PARAM(pal, "file that contains palcode"), 121 INIT_PARAM_DFLT(boot_osflags, "flags to pass to the kernel during boot", 122 "a"), 123 INIT_PARAM_DFLT(readfile, "file to read startup script from", ""), 124 INIT_PARAM_DFLT(init_param, "numerical value to pass into simulator", 0), 125 INIT_PARAM_DFLT(system_type, "Type of system we are emulating", 34), |
126 INIT_PARAM_DFLT(system_rev, "Revision of system we are emulating", 1<<10) |
127 128END_INIT_SIM_OBJECT_PARAMS(FreebsdAlphaSystem) 129 130CREATE_SIM_OBJECT(FreebsdAlphaSystem) 131{ 132 AlphaSystem::Params *p = new AlphaSystem::Params; 133 p->name = getInstanceName(); 134 p->boot_cpu_frequency = boot_cpu_frequency; 135 p->physmem = physmem; 136 p->kernel_path = kernel; 137 p->console_path = console; 138 p->palcode = pal; 139 p->boot_osflags = boot_osflags; 140 p->init_param = init_param; 141 p->readfile = readfile; 142 p->system_type = system_type; 143 p->system_rev = system_rev; |
144 return new FreebsdAlphaSystem(p); 145} 146 147REGISTER_SIM_OBJECT("FreebsdAlphaSystem", FreebsdAlphaSystem) 148 |