includes.isa revision 8232
12623SN/A// Copyright (c) 2007-2008 The Hewlett-Packard Development Company
22623SN/A// All rights reserved.
32623SN/A//
42623SN/A// The license below extends only to copyright in the software and shall
52623SN/A// not be construed as granting a license to any other intellectual
62623SN/A// property including but not limited to intellectual property relating
72623SN/A// to a hardware implementation of the functionality of the software
82623SN/A// licensed hereunder.  You may use the software subject to the license
92623SN/A// terms below provided that you ensure that this notice is replicated
102623SN/A// unmodified and in its entirety in all distributions of the software,
112623SN/A// modified or unmodified, in source code or in binary form.
122623SN/A//
132623SN/A// Copyright (c) 2007 The Regents of The University of Michigan
142623SN/A// All rights reserved.
152623SN/A//
162623SN/A// Redistribution and use in source and binary forms, with or without
172623SN/A// modification, are permitted provided that the following conditions are
182623SN/A// met: redistributions of source code must retain the above copyright
192623SN/A// notice, this list of conditions and the following disclaimer;
202623SN/A// redistributions in binary form must reproduce the above copyright
212623SN/A// notice, this list of conditions and the following disclaimer in the
222623SN/A// documentation and/or other materials provided with the distribution;
232623SN/A// neither the name of the copyright holders nor the names of its
242623SN/A// contributors may be used to endorse or promote products derived from
252623SN/A// this software without specific prior written permission.
262623SN/A//
272665Ssaidi@eecs.umich.edu// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
282665Ssaidi@eecs.umich.edu// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
292623SN/A// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
302623SN/A// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
313170Sstever@eecs.umich.edu// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
322623SN/A// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
332623SN/A// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
342623SN/A// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
353348Sbinkertn@umich.edu// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
363348Sbinkertn@umich.edu// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
372623SN/A// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
382901Ssaidi@eecs.umich.edu//
392623SN/A// Authors: Gabe Black
402623SN/A
412623SN/A////////////////////////////////////////////////////////////////////
422623SN/A//
432623SN/A// Output include file directives. Also import the python modules we
442623SN/A// need for all the x86 custom decoder stuff
452623SN/A//
462623SN/A
472623SN/Alet {{
482623SN/A    import copy
492623SN/A}};
502623SN/A
512623SN/Aoutput header {{
522623SN/A#include <cstring>
532623SN/A#include <iostream>
542623SN/A#include <sstream>
552623SN/A
562623SN/A#include "arch/generic/debugfaults.hh"
572623SN/A#include "arch/x86/insts/macroop.hh"
582623SN/A#include "arch/x86/insts/microfpop.hh"
592623SN/A#include "arch/x86/insts/microldstop.hh"
602623SN/A#include "arch/x86/insts/micromediaop.hh"
612856Srdreslin@umich.edu#include "arch/x86/insts/microregop.hh"
622856Srdreslin@umich.edu#include "arch/x86/insts/static_inst.hh"
632856Srdreslin@umich.edu#include "arch/x86/emulenv.hh"
642856Srdreslin@umich.edu#include "arch/x86/isa_traits.hh"
652856Srdreslin@umich.edu#include "arch/x86/registers.hh"
662856Srdreslin@umich.edu#include "arch/x86/types.hh"
672856Srdreslin@umich.edu#include "base/misc.hh"
682856Srdreslin@umich.edu#include "cpu/static_inst.hh"
692856Srdreslin@umich.edu#include "mem/packet.hh"
702856Srdreslin@umich.edu#include "sim/faults.hh"
712623SN/A
722623SN/Ausing X86ISA::InstRegIndex;
732623SN/A}};
742623SN/A
752623SN/Aoutput decoder {{
762856Srdreslin@umich.edu#include "arch/x86/regs/float.hh"
772856Srdreslin@umich.edu#include "arch/x86/regs/misc.hh"
782856Srdreslin@umich.edu#include "arch/x86/regs/segment.hh"
792623SN/A#include "arch/x86/faults.hh"
802856Srdreslin@umich.edu#include "arch/x86/microcode_rom.hh"
812856Srdreslin@umich.edu#include "arch/x86/tlb.hh"
822856Srdreslin@umich.edu#include "base/loader/symtab.hh"
832623SN/A#include "base/cprintf.hh"
842623SN/A#include "base/misc.hh"
852623SN/A#include "cpu/thread_context.hh"  // for Jump::branchTarget()
862680Sktlim@umich.edu#include "mem/packet.hh"
872680Sktlim@umich.edu
882623SN/A#if defined(linux) || defined(__APPLE__)
892623SN/A#include <fenv.h>
902680Sktlim@umich.edu#endif
912623SN/A#include <algorithm>
922623SN/A
932623SN/Ausing namespace X86ISA;
942623SN/A}};
952623SN/A
963349Sbinkertn@umich.eduoutput exec {{
972623SN/A#if defined(linux) || defined(__APPLE__)
983184Srdreslin@umich.edu#include <fenv.h>
992623SN/A#endif
1002623SN/A
1012623SN/A#if defined(__sun) || defined (__OpenBSD__)
1022623SN/A#include <ieeefp.h>
1033349Sbinkertn@umich.edu#endif
1042623SN/A
1053310Srdreslin@umich.edu#if FULL_SYSTEM
1062623SN/A#include "sim/pseudo_inst.hh"
1072623SN/A#endif
1082623SN/A
1092623SN/A#include <cmath>
1103349Sbinkertn@umich.edu#include <limits>
1112623SN/A
1123184Srdreslin@umich.edu#include "arch/x86/regs/misc.hh"
1133184Srdreslin@umich.edu#include "arch/x86/cpuid.hh"
1142623SN/A#include "arch/x86/faults.hh"
1152623SN/A#include "arch/x86/tlb.hh"
1162623SN/A#include "base/bigint.hh"
1172623SN/A#include "base/compiler.hh"
1182623SN/A#include "base/condcodes.hh"
1192626SN/A#include "cpu/base.hh"
1202626SN/A#include "cpu/exetrace.hh"
1212626SN/A#include "debug/X86.hh"
1222623SN/A#include "mem/packet.hh"
1232623SN/A#include "mem/packet_access.hh"
1242623SN/A#include "mem/request.hh"
1252657Ssaidi@eecs.umich.edu#include "sim/pseudo_inst.hh"
1262623SN/A#include "sim/sim_exit.hh"
1272623SN/A
1282623SN/Ausing namespace X86ISA;
1292623SN/Ausing namespace std;
1302623SN/A}};
1312623SN/A
1322623SN/A