Func.py (7007:79413d1ec307) Func.py (7055:4e24742201d7)
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;

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

76/** Auto generated C++ code started by $__file__:$__line__ */
77
78#include "mem/protocol/Types.hh"
79''')
80
81 if self.isInternalMachineFunc:
82 code('#include "mem/protocol/${{self.machineStr}}_Controller.hh"')
83
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;

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

76/** Auto generated C++ code started by $__file__:$__line__ */
77
78#include "mem/protocol/Types.hh"
79''')
80
81 if self.isInternalMachineFunc:
82 code('#include "mem/protocol/${{self.machineStr}}_Controller.hh"')
83
84 code('using namespace std;')
84 # Generate function header
85 void_type = self.symtab.find("void", Type)
86 return_type = self.return_type.c_ident
87 if "return_by_ref" in self and self.return_type != void_type:
88 return_type += "&"
89
90 if self.isInternalMachineFunc:
91 klass = "%s_Controller" % self.machineStr

--- 15 unchanged lines hidden ---
85 # Generate function header
86 void_type = self.symtab.find("void", Type)
87 return_type = self.return_type.c_ident
88 if "return_by_ref" in self and self.return_type != void_type:
89 return_type += "&"
90
91 if self.isInternalMachineFunc:
92 klass = "%s_Controller" % self.machineStr

--- 15 unchanged lines hidden ---