__init__.py revision 5081
11689SN/A# Copyright (c) 2007 The Hewlett-Packard Development Company
22329SN/A# All rights reserved.
31689SN/A#
41689SN/A# Redistribution and use of this software in source and binary forms,
51689SN/A# with or without modification, are permitted provided that the
61689SN/A# following conditions are met:
71689SN/A#
81689SN/A# The software must be used only for Non-Commercial Use which means any
91689SN/A# use which is NOT directed to receiving any direct monetary
101689SN/A# compensation for, or commercial advantage from such use.  Illustrative
111689SN/A# examples of non-commercial use are academic research, personal study,
121689SN/A# teaching, education and corporate research & development.
131689SN/A# Illustrative examples of commercial use are distributing products for
141689SN/A# commercial advantage and providing services using the software for
151689SN/A# commercial advantage.
161689SN/A#
171689SN/A# If you wish to use this software or functionality therein that may be
181689SN/A# covered by patents for commercial use, please contact:
191689SN/A#     Director of Intellectual Property Licensing
201689SN/A#     Office of Strategy and Technology
211689SN/A#     Hewlett-Packard Company
221689SN/A#     1501 Page Mill Road
231689SN/A#     Palo Alto, California  94304
241689SN/A#
251689SN/A# Redistributions of source code must retain the above copyright notice,
261689SN/A# this list of conditions and the following disclaimer.  Redistributions
272665Ssaidi@eecs.umich.edu# in binary form must reproduce the above copyright notice, this list of
282665Ssaidi@eecs.umich.edu# conditions and the following disclaimer in the documentation and/or
291689SN/A# other materials provided with the distribution.  Neither the name of
301061SN/A# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
311061SN/A# contributors may be used to endorse or promote products derived from
321061SN/A# this software without specific prior written permission.  No right of
332292SN/A# sublicense is granted herewith.  Derivatives of the software and
341717SN/A# output created using the software may be prepared, but only for
351061SN/A# Non-Commercial Uses.  Derivatives of the software may be shared with
365529Snate@binkert.org# others provided: (i) the others agree to abide by the list of
375529Snate@binkert.org# conditions herein which includes the Non-Commercial Use restrictions;
381061SN/A# and (ii) such Derivatives of the software include the above copyright
393500Sktlim@umich.edu# notice to acknowledge the contribution from this software where
403500Sktlim@umich.edu# applicable, this list of conditions and the disclaimer below.
413500Sktlim@umich.edu#
423500Sktlim@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
433500Sktlim@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
443500Sktlim@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
453500Sktlim@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
465529Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
476005Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
486005Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
492292SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
501061SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
512292SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
522292SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
532292SN/A#
542292SN/A# Authors: Gabe Black
552292SN/A
562292SN/Acategories = ["call",
572292SN/A              "conditional_jump",
582292SN/A              "interrupts_and_exceptions",
592292SN/A              "jump",
602292SN/A              "loop",
612292SN/A              "xreturn"]
622292SN/A
632292SN/Amicrocode = ""
642292SN/Afor category in categories:
652292SN/A    exec "import %s as cat" % category
662292SN/A    microcode += cat.microcode
672292SN/A