Deleted Added
sdiff udiff text old ( 7620:3d8a23caa1ef ) new ( 8607:5fb918115c07 )
full compact
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 The Hewlett-Packard Development Company
4// All rights reserved.
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

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

54
55 generatorNameTemplate = "generate_%s_%d"
56
57 generatorTemplate = '''
58 StaticInstPtr
59 ''' + generatorNameTemplate + '''(StaticInstPtr curMacroop)
60 {
61 static const char *macrocodeBlock = romMnemonic;
62 static const ExtMachInst dummyExtMachInst;
63 static const EmulEnv dummyEmulEnv(0, 0, 1, 1, 1);
64
65 Macroop * macroop = dynamic_cast<Macroop *>(curMacroop.get());
66 const ExtMachInst &machInst =
67 macroop ? macroop->getExtMachInst() : dummyExtMachInst;
68 const EmulEnv &env =
69 macroop ? macroop->getEmulEnv() : dummyEmulEnv;
70 // env may not be used in the microop's constructor.

--- 22 unchanged lines hidden ---