base.isa (5692:0d6addcde185) base.isa (5788:6d4161a36ca1)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 The Hewlett-Packard Development Company
4// All rights reserved.
5//
6// Redistribution and use of this software in source and binary forms,
7// with or without modification, are permitted provided that the
8// following conditions are met:

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

71 class X86Microop(object):
72
73 generatorNameTemplate = "generate_%s_%d"
74
75 generatorTemplate = '''
76 StaticInstPtr
77 ''' + generatorNameTemplate + '''(StaticInstPtr curMacroop)
78 {
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 The Hewlett-Packard Development Company
4// All rights reserved.
5//
6// Redistribution and use of this software in source and binary forms,
7// with or without modification, are permitted provided that the
8// following conditions are met:

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

71 class X86Microop(object):
72
73 generatorNameTemplate = "generate_%s_%d"
74
75 generatorTemplate = '''
76 StaticInstPtr
77 ''' + generatorNameTemplate + '''(StaticInstPtr curMacroop)
78 {
79 static const char * mnemonic = romMnemonic;
79 static const char *macrocodeBlock = romMnemonic;
80 static const ExtMachInst dummyExtMachInst;
81 static const EmulEnv dummyEmulEnv(0, 0, 1, 1, 1);
82
83 Macroop * macroop = dynamic_cast<Macroop *>(curMacroop.get());
84 const ExtMachInst &machInst =
85 macroop ? macroop->getExtMachInst() : dummyExtMachInst;
86 const EmulEnv &env =
87 macroop ? macroop->getEmulEnv() : dummyEmulEnv;

--- 38 unchanged lines hidden ---
80 static const ExtMachInst dummyExtMachInst;
81 static const EmulEnv dummyEmulEnv(0, 0, 1, 1, 1);
82
83 Macroop * macroop = dynamic_cast<Macroop *>(curMacroop.get());
84 const ExtMachInst &machInst =
85 macroop ? macroop->getExtMachInst() : dummyExtMachInst;
86 const EmulEnv &env =
87 macroop ? macroop->getEmulEnv() : dummyEmulEnv;

--- 38 unchanged lines hidden ---