StateMachine.py (9302:c2e70a9bc340) | StateMachine.py (9338:97b4a2be1e5b) |
---|---|
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 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; --- 171 unchanged lines hidden (view full) --- 180 c_ident = "%s_Controller" % self.ident 181 code(''' 182from m5.params import * 183from m5.SimObject import SimObject 184from Controller import RubyController 185 186class $py_ident(RubyController): 187 type = '$py_ident' | 1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 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; --- 171 unchanged lines hidden (view full) --- 180 c_ident = "%s_Controller" % self.ident 181 code(''' 182from m5.params import * 183from m5.SimObject import SimObject 184from Controller import RubyController 185 186class $py_ident(RubyController): 187 type = '$py_ident' |
188 cxx_header = 'mem/protocol/${c_ident}.hh' |
|
188''') 189 code.indent() 190 for param in self.config_parameters: 191 dflt_str = '' 192 if param.default is not None: 193 dflt_str = str(param.default) + ', ' 194 if python_class_map.has_key(param.type_ast.type.c_ident): 195 python_type = python_class_map[param.type_ast.type.c_ident] --- 1552 unchanged lines hidden --- | 189''') 190 code.indent() 191 for param in self.config_parameters: 192 dflt_str = '' 193 if param.default is not None: 194 dflt_str = str(param.default) + ', ' 195 if python_class_map.has_key(param.type_ast.type.c_ident): 196 python_type = python_class_map[param.type_ast.type.c_ident] --- 1552 unchanged lines hidden --- |