includes.isa revision 4323
12623SN/A// Copyright (c) 2007 The Regents of The University of Michigan
22623SN/A// All rights reserved.
32623SN/A//
42623SN/A// Redistribution and use in source and binary forms, with or without
52623SN/A// modification, are permitted provided that the following conditions are
62623SN/A// met: redistributions of source code must retain the above copyright
72623SN/A// notice, this list of conditions and the following disclaimer;
82623SN/A// redistributions in binary form must reproduce the above copyright
92623SN/A// notice, this list of conditions and the following disclaimer in the
102623SN/A// documentation and/or other materials provided with the distribution;
112623SN/A// neither the name of the copyright holders nor the names of its
122623SN/A// contributors may be used to endorse or promote products derived from
132623SN/A// this software without specific prior written permission.
142623SN/A//
152623SN/A// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
162623SN/A// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
172623SN/A// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
182623SN/A// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
192623SN/A// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
202623SN/A// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
212623SN/A// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
222623SN/A// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
232623SN/A// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
242623SN/A// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
252623SN/A// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
262623SN/A//
272665Ssaidi@eecs.umich.edu// Authors: Gabe Black
282665Ssaidi@eecs.umich.edu
292623SN/A// Copyright (c) 2007 The Hewlett-Packard Development Company
302623SN/A// All rights reserved.
313170Sstever@eecs.umich.edu//
323806Ssaidi@eecs.umich.edu// Redistribution and use of this software in source and binary forms,
332623SN/A// with or without modification, are permitted provided that the
344040Ssaidi@eecs.umich.edu// following conditions are met:
352623SN/A//
362623SN/A// The software must be used only for Non-Commercial Use which means any
373348Sbinkertn@umich.edu// use which is NOT directed to receiving any direct monetary
383348Sbinkertn@umich.edu// compensation for, or commercial advantage from such use.  Illustrative
394762Snate@binkert.org// examples of non-commercial use are academic research, personal study,
402901Ssaidi@eecs.umich.edu// teaching, education and corporate research & development.
412623SN/A// Illustrative examples of commercial use are distributing products for
422623SN/A// commercial advantage and providing services using the software for
432623SN/A// commercial advantage.
442623SN/A//
452623SN/A// If you wish to use this software or functionality therein that may be
462623SN/A// covered by patents for commercial use, please contact:
472623SN/A//     Director of Intellectual Property Licensing
482623SN/A//     Office of Strategy and Technology
492623SN/A//     Hewlett-Packard Company
502623SN/A//     1501 Page Mill Road
512623SN/A//     Palo Alto, California  94304
522623SN/A//
532623SN/A// Redistributions of source code must retain the above copyright notice,
542623SN/A// this list of conditions and the following disclaimer.  Redistributions
552623SN/A// in binary form must reproduce the above copyright notice, this list of
562623SN/A// conditions and the following disclaimer in the documentation and/or
572623SN/A// other materials provided with the distribution.  Neither the name of
582623SN/A// the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
592623SN/A// contributors may be used to endorse or promote products derived from
604873Sstever@eecs.umich.edu// this software without specific prior written permission.  No right of
612623SN/A// sublicense is granted herewith.  Derivatives of the software and
622623SN/A// output created using the software may be prepared, but only for
632856Srdreslin@umich.edu// Non-Commercial Uses.  Derivatives of the software may be shared with
642856Srdreslin@umich.edu// others provided: (i) the others agree to abide by the list of
652856Srdreslin@umich.edu// conditions herein which includes the Non-Commercial Use restrictions;
662856Srdreslin@umich.edu// and (ii) such Derivatives of the software include the above copyright
672856Srdreslin@umich.edu// notice to acknowledge the contribution from this software where
682856Srdreslin@umich.edu// applicable, this list of conditions and the disclaimer below.
692856Srdreslin@umich.edu//
704968Sacolyte@umich.edu// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
714968Sacolyte@umich.edu// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
724968Sacolyte@umich.edu// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
734968Sacolyte@umich.edu// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
742856Srdreslin@umich.edu// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
752856Srdreslin@umich.edu// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
762856Srdreslin@umich.edu// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
772623SN/A// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
782623SN/A// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
792623SN/A// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
802623SN/A// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
812623SN/A//
822623SN/A// Authors: Gabe Black
832680Sktlim@umich.edu
842680Sktlim@umich.edu////////////////////////////////////////////////////////////////////
852623SN/A//
862623SN/A// Output include file directives. Also import the python modules we
872680Sktlim@umich.edu// need for all the x86 custom decoder stuff
882623SN/A//
892623SN/A
904968Sacolyte@umich.edulet {{
914968Sacolyte@umich.edu    import copy
924968Sacolyte@umich.edu}};
934968Sacolyte@umich.edu
944968Sacolyte@umich.eduoutput header {{
954968Sacolyte@umich.edu#include <cstring>
962623SN/A#include <sstream>
972623SN/A#include <iostream>
982623SN/A
993349Sbinkertn@umich.edu#include "arch/x86/faults.hh"
1002623SN/A#include "arch/x86/isa_traits.hh"
1013184Srdreslin@umich.edu#include "arch/x86/regfile.hh"
1022623SN/A#include "base/misc.hh"
1032623SN/A#include "cpu/static_inst.hh"
1042623SN/A#include "mem/packet.hh"
1052623SN/A#include "mem/request.hh"  // some constructors use MemReq flags
1063349Sbinkertn@umich.edu}};
1072623SN/A
1083310Srdreslin@umich.eduoutput decoder {{
1093649Srdreslin@umich.edu#include "base/cprintf.hh"
1102623SN/A#include "base/loader/symtab.hh"
1112623SN/A#include "cpu/thread_context.hh"  // for Jump::branchTarget()
1122623SN/A#include "mem/packet.hh"
1133349Sbinkertn@umich.edu
1142623SN/A#if defined(linux) || defined(__APPLE__)
1153184Srdreslin@umich.edu#include <fenv.h>
1163184Srdreslin@umich.edu#endif
1172623SN/A#include <algorithm>
1182623SN/A
1192623SN/Ausing namespace X86ISA;
1202623SN/A}};
1212623SN/A
1223647Srdreslin@umich.eduoutput exec {{
1233647Srdreslin@umich.edu#if defined(linux) || defined(__APPLE__)
1243647Srdreslin@umich.edu#include <fenv.h>
1253647Srdreslin@umich.edu#endif
1263647Srdreslin@umich.edu
1272626SN/A#if defined(__sun) || defined (__OpenBSD__)
1283647Srdreslin@umich.edu#include <ieeefp.h>
1292626SN/A#endif
1302623SN/A
1312623SN/A#if FULL_SYSTEM
1322623SN/A#include "sim/pseudo_inst.hh"
1332657Ssaidi@eecs.umich.edu#endif
1342623SN/A
1352623SN/A#include <limits>
1362623SN/A
1372623SN/A#include <cmath>
1382623SN/A#include "base/bigint.hh"
1394192Sktlim@umich.edu#include "cpu/base.hh"
1404192Sktlim@umich.edu#include "cpu/exetrace.hh"
1414192Sktlim@umich.edu#include "sim/sim_exit.hh"
1424192Sktlim@umich.edu#include "mem/packet.hh"
1434192Sktlim@umich.edu#include "mem/packet_access.hh"
1444192Sktlim@umich.edu
1454192Sktlim@umich.eduusing namespace X86ISA;
1464192Sktlim@umich.eduusing namespace std;
1474192Sktlim@umich.edu}};
1484192Sktlim@umich.edu
1494192Sktlim@umich.edu