system.cc (2680:246e7104f744) system.cc (2716:b9114064d77a)
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
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
112 Param<bool> bin;
113 VectorParam<string> binned_fns;
114 Param<bool> bin_int;
115
116END_DECLARE_SIM_OBJECT_PARAMS(FreebsdAlphaSystem)
117
118BEGIN_INIT_SIM_OBJECT_PARAMS(FreebsdAlphaSystem)
119
120 INIT_PARAM(boot_cpu_frequency, "Frequency of the boot CPU"),
121 INIT_PARAM(physmem, "phsyical memory"),
122 INIT_PARAM(kernel, "file that contains the kernel code"),
123 INIT_PARAM(console, "file that contains the console code"),
124 INIT_PARAM(pal, "file that contains palcode"),
125 INIT_PARAM_DFLT(boot_osflags, "flags to pass to the kernel during boot",
126 "a"),
127 INIT_PARAM_DFLT(readfile, "file to read startup script from", ""),
128 INIT_PARAM_DFLT(init_param, "numerical value to pass into simulator", 0),
129 INIT_PARAM_DFLT(system_type, "Type of system we are emulating", 34),
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),
130 INIT_PARAM_DFLT(system_rev, "Revision of system we are emulating", 1<<10),
131 INIT_PARAM_DFLT(bin, "is this system to be binned", false),
132 INIT_PARAM(binned_fns, "functions to be broken down and binned"),
133 INIT_PARAM_DFLT(bin_int, "is interrupt code binned seperately?", true)
126 INIT_PARAM_DFLT(system_rev, "Revision of system we are emulating", 1<<10)
134
135END_INIT_SIM_OBJECT_PARAMS(FreebsdAlphaSystem)
136
137CREATE_SIM_OBJECT(FreebsdAlphaSystem)
138{
139 AlphaSystem::Params *p = new AlphaSystem::Params;
140 p->name = getInstanceName();
141 p->boot_cpu_frequency = boot_cpu_frequency;
142 p->physmem = physmem;
143 p->kernel_path = kernel;
144 p->console_path = console;
145 p->palcode = pal;
146 p->boot_osflags = boot_osflags;
147 p->init_param = init_param;
148 p->readfile = readfile;
149 p->system_type = system_type;
150 p->system_rev = system_rev;
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;
151 p->bin = bin;
152 p->binned_fns = binned_fns;
153 p->bin_int = bin_int;
154 return new FreebsdAlphaSystem(p);
155}
156
157REGISTER_SIM_OBJECT("FreebsdAlphaSystem", FreebsdAlphaSystem)
158
144 return new FreebsdAlphaSystem(p);
145}
146
147REGISTER_SIM_OBJECT("FreebsdAlphaSystem", FreebsdAlphaSystem)
148