Type.py (12065:e3e51756dfef) | Type.py (12334:e0ab29a34764) |
---|---|
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; --- 446 unchanged lines hidden (view full) --- 455#include <string> 456 457''') 458 if self.isStateDecl: 459 code('#include "mem/protocol/AccessPermission.hh"') 460 461 if self.isMachineType: 462 code('#include <functional>') | 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; --- 446 unchanged lines hidden (view full) --- 455#include <string> 456 457''') 458 if self.isStateDecl: 459 code('#include "mem/protocol/AccessPermission.hh"') 460 461 if self.isMachineType: 462 code('#include <functional>') |
463 code('#include "base/misc.hh"') | 463 code('#include "base/logging.hh"') |
464 code('#include "mem/ruby/common/Address.hh"') 465 code('#include "mem/ruby/common/TypeDefines.hh"') 466 code('struct MachineID;') 467 468 code(''' 469 470// Class definition 471/** \\enum ${{self.c_ident}} --- 84 unchanged lines hidden (view full) --- 556 * 557 * Auto generated C++ code started by $__file__:$__line__ 558 */ 559 560#include <cassert> 561#include <iostream> 562#include <string> 563 | 464 code('#include "mem/ruby/common/Address.hh"') 465 code('#include "mem/ruby/common/TypeDefines.hh"') 466 code('struct MachineID;') 467 468 code(''' 469 470// Class definition 471/** \\enum ${{self.c_ident}} --- 84 unchanged lines hidden (view full) --- 556 * 557 * Auto generated C++ code started by $__file__:$__line__ 558 */ 559 560#include <cassert> 561#include <iostream> 562#include <string> 563 |
564#include "base/misc.hh" | 564#include "base/logging.hh" |
565#include "mem/protocol/${{self.c_ident}}.hh" 566 567using namespace std; 568 569''') 570 571 if self.isStateDecl: 572 code(''' --- 227 unchanged lines hidden --- | 565#include "mem/protocol/${{self.c_ident}}.hh" 566 567using namespace std; 568 569''') 570 571 if self.isStateDecl: 572 code(''' --- 227 unchanged lines hidden --- |