Deleted Added
sdiff udiff text old ( 8651:c3d878fbdaea ) new ( 8683:9feb100066e1 )
full compact
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;

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

259 void initNetworkPtr(Network* net_ptr) { m_net_ptr = net_ptr; }
260 void print(std::ostream& out) const;
261 void printConfig(std::ostream& out) const;
262 void wakeup();
263 void printStats(std::ostream& out) const;
264 void clearStats();
265 void blockOnQueue(Address addr, MessageBuffer* port);
266 void unblock(Address addr);
267
268private:
269''')
270
271 code.indent()
272 # added by SS
273 for param in self.config_parameters:
274 if param.pointer:

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

669 if port.code.find("mandatoryQueue_ptr") >= 0:
670 has_mandatory_q = True
671
672 if has_mandatory_q:
673 mq_ident = "m_%s_mandatoryQueue_ptr" % self.ident
674 else:
675 mq_ident = "NULL"
676
677 code('''
678int
679$c_ident::getNumControllers()
680{
681 return m_num_controllers;
682}
683
684MessageBuffer*
685$c_ident::getMandatoryQueue() const
686{
687 return $mq_ident;
688}
689
690const int &
691$c_ident::getVersion() const
692{
693 return m_version;
694}
695
696const string
697$c_ident::toString() const

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

870$c_ident::unset_tbe(${{self.TBEType.c_ident}}*& m_tbe_ptr)
871{
872 m_tbe_ptr = NULL;
873}
874''')
875
876 code('''
877
878// Actions
879''')
880 if self.TBEType != None and self.EntryType != None:
881 for action in self.actions.itervalues():
882 if "c_code" not in action:
883 continue
884
885 code('''

--- 751 unchanged lines hidden ---