Deleted Added
sdiff udiff text old ( 10457:c0302ad57921 ) new ( 10458:64809024b924 )
full compact
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 565 unchanged lines hidden (view full) ---

574
575 name = str(source[0].get_contents())
576 obj = sim_objects[name]
577
578 code = code_formatter()
579 obj.cxx_param_decl(code)
580 code.write(target[0].abspath)
581
582def createParamSwigWrapper(target, source, env):
583 assert len(target) == 1 and len(source) == 1
584
585 name = str(source[0].get_contents())
586 param = params_to_swig[name]
587
588 code = code_formatter()
589 param.swig_decl(code)

--- 49 unchanged lines hidden (view full) ---

639
640 hh_file = File('params/%s.hh' % name)
641 params_hh_files.append(hh_file)
642 env.Command(hh_file, Value(name),
643 MakeAction(createSimObjectParamStruct, Transform("SO PARAM")))
644 env.Depends(hh_file, depends + extra_deps)
645 env.Depends(SWIG, hh_file)
646
647# Generate any needed param SWIG wrapper files
648params_i_files = []
649for name,param in params_to_swig.iteritems():
650 i_file = File('python/m5/internal/%s.i' % (param.swig_module_name()))
651 params_i_files.append(i_file)
652 env.Command(i_file, Value(name),
653 MakeAction(createParamSwigWrapper, Transform("SW PARAM")))
654 env.Depends(i_file, depends)

--- 545 unchanged lines hidden ---