fu_pool.cc (2736:98dcdc08884d) | fu_pool.cc (4762:c94e103c83ad) |
---|---|
1/* 2 * Copyright (c) 2006 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; --- 18 unchanged lines hidden (view full) --- 27 * 28 * Authors: Kevin Lim 29 */ 30 31#include <sstream> 32 33#include "cpu/o3/fu_pool.hh" 34#include "cpu/func_unit.hh" | 1/* 2 * Copyright (c) 2006 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; --- 18 unchanged lines hidden (view full) --- 27 * 28 * Authors: Kevin Lim 29 */ 30 31#include <sstream> 32 33#include "cpu/o3/fu_pool.hh" 34#include "cpu/func_unit.hh" |
35#include "sim/builder.hh" | 35#include "params/FUPool.hh" |
36 37using namespace std; 38 39//////////////////////////////////////////////////////////////////////////// 40// 41// A pool of function units 42// 43 --- 226 unchanged lines hidden (view full) --- 270 271// 272// FUPool - Contails a list of FUDesc objects to make available 273// 274 275// 276// The FuPool object 277// | 36 37using namespace std; 38 39//////////////////////////////////////////////////////////////////////////// 40// 41// A pool of function units 42// 43 --- 226 unchanged lines hidden (view full) --- 270 271// 272// FUPool - Contails a list of FUDesc objects to make available 273// 274 275// 276// The FuPool object 277// |
278 279BEGIN_DECLARE_SIM_OBJECT_PARAMS(FUPool) 280 281 SimObjectVectorParam<FUDesc *> FUList; 282 283END_DECLARE_SIM_OBJECT_PARAMS(FUPool) 284 285 286BEGIN_INIT_SIM_OBJECT_PARAMS(FUPool) 287 288 INIT_PARAM(FUList, "list of FU's for this pool") 289 290END_INIT_SIM_OBJECT_PARAMS(FUPool) 291 292 293CREATE_SIM_OBJECT(FUPool) | 278FUPool * 279FUPoolParams::create() |
294{ | 280{ |
295 return new FUPool(getInstanceName(), FUList); | 281 return new FUPool(name, FUList); |
296} | 282} |
297 298REGISTER_SIM_OBJECT("FUPool", FUPool) 299 | |