__init__.py revision 5359
12292SN/A# Copyright (c) 2008 The Regents of The University of Michigan 29783Sandreas.hansson@arm.com# All rights reserved. 39444SAndreas.Sandberg@ARM.com# 49444SAndreas.Sandberg@ARM.com# Redistribution and use in source and binary forms, with or without 59444SAndreas.Sandberg@ARM.com# modification, are permitted provided that the following conditions are 69444SAndreas.Sandberg@ARM.com# met: redistributions of source code must retain the above copyright 79444SAndreas.Sandberg@ARM.com# notice, this list of conditions and the following disclaimer; 89444SAndreas.Sandberg@ARM.com# redistributions in binary form must reproduce the above copyright 99444SAndreas.Sandberg@ARM.com# notice, this list of conditions and the following disclaimer in the 109444SAndreas.Sandberg@ARM.com# documentation and/or other materials provided with the distribution; 119444SAndreas.Sandberg@ARM.com# neither the name of the copyright holders nor the names of its 129444SAndreas.Sandberg@ARM.com# contributors may be used to endorse or promote products derived from 139444SAndreas.Sandberg@ARM.com# this software without specific prior written permission. 142689Sktlim@umich.edu# 152292SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 162292SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 172292SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 182292SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 192292SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 202292SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 212292SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 222292SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 232292SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 242292SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 252292SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 262292SN/A# 272292SN/A# Authors: Gabe Black 282292SN/A 292292SN/A# Copyright (c) 2007-2008 The Hewlett-Packard Development Company 302292SN/A# All rights reserved. 312292SN/A# 322292SN/A# Redistribution and use of this software in source and binary forms, 332292SN/A# with or without modification, are permitted provided that the 342292SN/A# following conditions are met: 352292SN/A# 362292SN/A# The software must be used only for Non-Commercial Use which means any 372292SN/A# use which is NOT directed to receiving any direct monetary 382292SN/A# compensation for, or commercial advantage from such use. Illustrative 392689Sktlim@umich.edu# examples of non-commercial use are academic research, personal study, 402689Sktlim@umich.edu# teaching, education and corporate research & development. 412292SN/A# Illustrative examples of commercial use are distributing products for 422292SN/A# commercial advantage and providing services using the software for 432292SN/A# commercial advantage. 442292SN/A# 452292SN/A# If you wish to use this software or functionality therein that may be 462736Sktlim@umich.edu# covered by patents for commercial use, please contact: 472292SN/A# Director of Intellectual Property Licensing 482292SN/A# Office of Strategy and Technology 492292SN/A# Hewlett-Packard Company 502292SN/A# 1501 Page Mill Road 512292SN/A# Palo Alto, California 94304 522292SN/A# 532292SN/A# Redistributions of source code must retain the above copyright notice, 542292SN/A# this list of conditions and the following disclaimer. Redistributions 552292SN/A# in binary form must reproduce the above copyright notice, this list of 562292SN/A# conditions and the following disclaimer in the documentation and/or 572292SN/A# other materials provided with the distribution. Neither the name of 582292SN/A# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 592292SN/A# contributors may be used to endorse or promote products derived from 602292SN/A# this software without specific prior written permission. No right of 612292SN/A# sublicense is granted herewith. Derivatives of the software and 622292SN/A# output created using the software may be prepared, but only for 632292SN/A# Non-Commercial Uses. Derivatives of the software may be shared with 642292SN/A# others provided: (i) the others agree to abide by the list of 652292SN/A# conditions herein which includes the Non-Commercial Use restrictions; 662292SN/A# and (ii) such Derivatives of the software include the above copyright 672292SN/A# notice to acknowledge the contribution from this software where 682292SN/A# applicable, this list of conditions and the disclaimer below. 692292SN/A# 702292SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 712292SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 722292SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 732292SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 742292SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 752292SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 762292SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 772292SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 782292SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 792292SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 802292SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 812292SN/A# 822292SN/A# Authors: Gabe Black 835034Smilesck@eecs.umich.edu 845034Smilesck@eecs.umich.educategories = ["halt", 852292SN/A "invlpg", 862292SN/A "undefined_operation", 872292SN/A "msrs", 882292SN/A "segmentation"] 892292SN/A 902292SN/Amicrocode = "" 919184Sandreas.hansson@arm.comfor category in categories: 929184Sandreas.hansson@arm.com exec "import %s as cat" % category 932292SN/A microcode += cat.microcode 942292SN/A 952292SN/A