macroop.isa (5009:78d53ea88c74) macroop.isa (5040:126e4510b5bb)
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:

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

148 //array in the parent class.
149 %(alloc_microops)s;
150 }
151}};
152
153let {{
154 from micro_asm import Combinational_Macroop, Rom_Macroop
155 class X86Macroop(Combinational_Macroop):
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:

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

148 //array in the parent class.
149 %(alloc_microops)s;
150 }
151}};
152
153let {{
154 from micro_asm import Combinational_Macroop, Rom_Macroop
155 class X86Macroop(Combinational_Macroop):
156 def add_microop(self, microop):
156 def add_microop(self, mnemonic, microop):
157 microop.mnemonic = mnemonic
157 microop.micropc = len(self.microops)
158 self.microops.append(microop)
159 def setAdjustEnv(self, val):
160 self.adjust_env = val
161 def __init__(self, name):
162 super(X86Macroop, self).__init__(name)
163 self.directives = {
164 "adjust_env" : self.setAdjustEnv

--- 109 unchanged lines hidden ---
158 microop.micropc = len(self.microops)
159 self.microops.append(microop)
160 def setAdjustEnv(self, val):
161 self.adjust_env = val
162 def __init__(self, name):
163 super(X86Macroop, self).__init__(name)
164 self.directives = {
165 "adjust_env" : self.setAdjustEnv

--- 109 unchanged lines hidden ---