base.isa (11320:42ecb523c64a) | base.isa (12407:c24d0c2d816d) |
---|---|
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; | 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 X86ISA::NoopMachInst; | 62 static ExtMachInst dummyExtMachInst; |
64 static const EmulEnv dummyEmulEnv(0, 0, 1, 1, 1); 65 66 Macroop * macroop = dynamic_cast<Macroop *>(curMacroop.get()); 67 const ExtMachInst &machInst = 68 macroop ? macroop->getExtMachInst() : dummyExtMachInst; 69 const EmulEnv &env = 70 macroop ? macroop->getEmulEnv() : dummyEmulEnv; 71 // env may not be used in the microop's constructor. --- 22 unchanged lines hidden --- | 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 --- |