microasm.isa (4533:126c53d7644a) microasm.isa (4537:01bac5417818)
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:

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

52// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
53// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
54// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55//
56// Authors: Gabe Black
57
58//Include the definitions of the micro ops.
59//These are StaticInst classes which stand on their own and make up an
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:

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

52// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
53// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
54// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55//
56// Authors: Gabe Black
57
58//Include the definitions of the micro ops.
59//These are StaticInst classes which stand on their own and make up an
60//internal instruction set.
60//internal instruction set, and also python representations which are passed
61//into the microcode assembler.
61##include "microops/microops.isa"
62
62##include "microops/microops.isa"
63
63//Include code to build macroops.
64//Include code to build macroops in both C++ and python.
64##include "macroop.isa"
65
66let {{
67 import sys
68 sys.path[0:0] = ["src/arch/x86/isa/"]
69 from insts import microcode
70 print microcode
71 from micro_asm import MicroAssembler, Rom_Macroop, Rom
72 mainRom = Rom('main ROM')
73 assembler = MicroAssembler(X86Macroop, microopClasses, mainRom, Rom_Macroop)
74 macroopDict = assembler.assemble(microcode)
75}};
65##include "macroop.isa"
66
67let {{
68 import sys
69 sys.path[0:0] = ["src/arch/x86/isa/"]
70 from insts import microcode
71 print microcode
72 from micro_asm import MicroAssembler, Rom_Macroop, Rom
73 mainRom = Rom('main ROM')
74 assembler = MicroAssembler(X86Macroop, microopClasses, mainRom, Rom_Macroop)
75 macroopDict = assembler.assemble(microcode)
76}};