Move the microcode assembly to a python package instead of isa_parser files. Also, the code is now a single string which runs through the microcode assembler rather than docstrings associated with classes named after each architectural level instruction.
--HG-- extra : convert_revision : 20e6d6ac625dde8f1885acc445882096df562778
This commit is contained in:
parent
1f7ed5b7b4
commit
8bd213b3b8
54 changed files with 3531 additions and 0 deletions
79
src/arch/x86/isa/insts/__init__.py
Normal file
79
src/arch/x86/isa/insts/__init__.py
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
categories = ["arithmetic",
|
||||||
|
"cache_and_memory_management",
|
||||||
|
"compare_and_test",
|
||||||
|
"control_transfer",
|
||||||
|
"data_conversion",
|
||||||
|
"data_transfer",
|
||||||
|
"flags",
|
||||||
|
"input_output",
|
||||||
|
"load_effective_address",
|
||||||
|
"load_segment_registers",
|
||||||
|
"logical",
|
||||||
|
"no_operation",
|
||||||
|
"processor_information",
|
||||||
|
"rotate_and_shift",
|
||||||
|
"semaphores",
|
||||||
|
"string",
|
||||||
|
"system_calls"]
|
||||||
|
|
||||||
|
microcode = '''
|
||||||
|
# X86 microcode
|
||||||
|
'''
|
||||||
|
for category in categories:
|
||||||
|
exec "import %s as cat" % category
|
||||||
|
microcode += cat.microcode
|
64
src/arch/x86/isa/insts/arithmetic/__init__.py
Normal file
64
src/arch/x86/isa/insts/arithmetic/__init__.py
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
categories = ["add_and_subtract",
|
||||||
|
"increment_and_decrement",
|
||||||
|
"multiply_and_divide"]
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
for category in categories:
|
||||||
|
exec "import %s as cat" % category
|
||||||
|
microcode += cat.microcode
|
||||||
|
|
68
src/arch/x86/isa/insts/arithmetic/add_and_subtract.py
Normal file
68
src/arch/x86/isa/insts/arithmetic/add_and_subtract.py
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class ADC(Inst):
|
||||||
|
# "Adc ^0 ^0 ^1"
|
||||||
|
# class ADD(Inst):
|
||||||
|
# "Add ^0 ^0 ^1"
|
||||||
|
# class SBB(Inst):
|
||||||
|
# "Sbb ^0 ^0 ^1"
|
||||||
|
# class SUB(Inst):
|
||||||
|
# "Sub ^0 ^0 ^1"
|
||||||
|
# class NEG(Inst):
|
||||||
|
# "Sub ^0 $0 ^0"
|
||||||
|
#}};
|
62
src/arch/x86/isa/insts/arithmetic/increment_and_decrement.py
Normal file
62
src/arch/x86/isa/insts/arithmetic/increment_and_decrement.py
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class DEC(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class INC(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
66
src/arch/x86/isa/insts/arithmetic/multiply_and_divide.py
Normal file
66
src/arch/x86/isa/insts/arithmetic/multiply_and_divide.py
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class MUL(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class IMUL(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class DIV(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class IDIV(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
72
src/arch/x86/isa/insts/cache_and_memory_management.py
Normal file
72
src/arch/x86/isa/insts/cache_and_memory_management.py
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class LFENCE(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class SFENCE(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class MFENCE(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class PREFETCHlevel(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class PREFETCH(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class PREFETCHW(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class CLFLUSH(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
66
src/arch/x86/isa/insts/compare_and_test/__init__.py
Normal file
66
src/arch/x86/isa/insts/compare_and_test/__init__.py
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
categories = ["bit_scan",
|
||||||
|
"bit_test",
|
||||||
|
"bounds",
|
||||||
|
"compare",
|
||||||
|
"set_byte_on_condition",
|
||||||
|
"test"]
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
for category in categories:
|
||||||
|
exec "import %s as cat" % category
|
||||||
|
microcode += cat.microcode
|
62
src/arch/x86/isa/insts/compare_and_test/bit_scan.py
Normal file
62
src/arch/x86/isa/insts/compare_and_test/bit_scan.py
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class BSF(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class BSR(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
66
src/arch/x86/isa/insts/compare_and_test/bit_test.py
Normal file
66
src/arch/x86/isa/insts/compare_and_test/bit_test.py
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class BT(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class BTC(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class BTR(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class BTS(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
60
src/arch/x86/isa/insts/compare_and_test/bounds.py
Normal file
60
src/arch/x86/isa/insts/compare_and_test/bounds.py
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class BOUND(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
60
src/arch/x86/isa/insts/compare_and_test/compare.py
Normal file
60
src/arch/x86/isa/insts/compare_and_test/compare.py
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class CMP(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
|
@ -0,0 +1,60 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class SETcc(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
60
src/arch/x86/isa/insts/compare_and_test/test.py
Normal file
60
src/arch/x86/isa/insts/compare_and_test/test.py
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class TEST(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
66
src/arch/x86/isa/insts/control_transfer/__init__.py
Normal file
66
src/arch/x86/isa/insts/control_transfer/__init__.py
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
categories = ["call",
|
||||||
|
"conditional_jump",
|
||||||
|
"interrupts_and_exceptions",
|
||||||
|
"jump",
|
||||||
|
"loop",
|
||||||
|
"xreturn"]
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
for category in categories:
|
||||||
|
exec "import %s as cat" % category
|
||||||
|
microcode += cat.microcode
|
60
src/arch/x86/isa/insts/control_transfer/call.py
Normal file
60
src/arch/x86/isa/insts/control_transfer/call.py
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class CALL(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
60
src/arch/x86/isa/insts/control_transfer/conditional_jump.py
Normal file
60
src/arch/x86/isa/insts/control_transfer/conditional_jump.py
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class JCC(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
|
@ -0,0 +1,68 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class INT(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class INTO(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class IRET(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class IRETD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class IRETQ(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
60
src/arch/x86/isa/insts/control_transfer/jump.py
Normal file
60
src/arch/x86/isa/insts/control_transfer/jump.py
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class JMP(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
60
src/arch/x86/isa/insts/control_transfer/loop.py
Normal file
60
src/arch/x86/isa/insts/control_transfer/loop.py
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class LOOPcc(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
60
src/arch/x86/isa/insts/control_transfer/xreturn.py
Normal file
60
src/arch/x86/isa/insts/control_transfer/xreturn.py
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class RET(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
66
src/arch/x86/isa/insts/data_conversion/__init__.py
Normal file
66
src/arch/x86/isa/insts/data_conversion/__init__.py
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
categories = ["ascii_adjust",
|
||||||
|
"bcd_adjust",
|
||||||
|
"endian_conversion",
|
||||||
|
"extract_sign_mask",
|
||||||
|
"sign_extension",
|
||||||
|
"translate"]
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
for category in categories:
|
||||||
|
exec "import %s as cat" % category
|
||||||
|
microcode += cat.microcode
|
66
src/arch/x86/isa/insts/data_conversion/ascii_adjust.py
Normal file
66
src/arch/x86/isa/insts/data_conversion/ascii_adjust.py
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class AAA(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class AAD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class AAM(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class AAS(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
62
src/arch/x86/isa/insts/data_conversion/bcd_adjust.py
Normal file
62
src/arch/x86/isa/insts/data_conversion/bcd_adjust.py
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class DAA(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class DAS(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
60
src/arch/x86/isa/insts/data_conversion/endian_conversion.py
Normal file
60
src/arch/x86/isa/insts/data_conversion/endian_conversion.py
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class BSWAP(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
62
src/arch/x86/isa/insts/data_conversion/extract_sign_mask.py
Normal file
62
src/arch/x86/isa/insts/data_conversion/extract_sign_mask.py
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class MOVMSKPS(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class MOVMSKPD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
70
src/arch/x86/isa/insts/data_conversion/sign_extension.py
Normal file
70
src/arch/x86/isa/insts/data_conversion/sign_extension.py
Normal file
|
@ -0,0 +1,70 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class CBW(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class CWDE(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class CDQE(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class CWD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class CDQ(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class CQO(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
60
src/arch/x86/isa/insts/data_conversion/translate.py
Normal file
60
src/arch/x86/isa/insts/data_conversion/translate.py
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class XLAT(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
63
src/arch/x86/isa/insts/data_transfer/__init__.py
Normal file
63
src/arch/x86/isa/insts/data_transfer/__init__.py
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
categories = ["conditional_move",
|
||||||
|
"move",
|
||||||
|
"stack_operations"]
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
for category in categories:
|
||||||
|
exec "import %s as cat" % category
|
||||||
|
microcode += cat.microcode
|
60
src/arch/x86/isa/insts/data_transfer/conditional_move.py
Normal file
60
src/arch/x86/isa/insts/data_transfer/conditional_move.py
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class CMOVcc(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
68
src/arch/x86/isa/insts/data_transfer/move.py
Normal file
68
src/arch/x86/isa/insts/data_transfer/move.py
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class MOV(Inst):
|
||||||
|
# "Mov ^0 ^0 ^1"
|
||||||
|
# class MOVSX(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class MOVZX(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class MOVD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class MOVNTI(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
76
src/arch/x86/isa/insts/data_transfer/stack_operations.py
Normal file
76
src/arch/x86/isa/insts/data_transfer/stack_operations.py
Normal file
|
@ -0,0 +1,76 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class POP(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class POPA(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class POPA(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class POPAD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class PUSH(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class PUSHA(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class PUSHAD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class ENTER(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class LEAVE(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
63
src/arch/x86/isa/insts/flags/__init__.py
Normal file
63
src/arch/x86/isa/insts/flags/__init__.py
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
categories = ["load_and_store",
|
||||||
|
"push_and_pop",
|
||||||
|
"set_and_clear"]
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
for category in categories:
|
||||||
|
exec "import %s as cat" % category
|
||||||
|
microcode += cat.microcode
|
62
src/arch/x86/isa/insts/flags/load_and_store.py
Normal file
62
src/arch/x86/isa/insts/flags/load_and_store.py
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class LAHF(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class SAHF(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
70
src/arch/x86/isa/insts/flags/push_and_pop.py
Normal file
70
src/arch/x86/isa/insts/flags/push_and_pop.py
Normal file
|
@ -0,0 +1,70 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class POPF(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class POPFD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class POPFQ(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class PUSHF(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class PUSHFD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class pushfq(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
72
src/arch/x86/isa/insts/flags/set_and_clear.py
Normal file
72
src/arch/x86/isa/insts/flags/set_and_clear.py
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class CLC(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class CMC(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class STC(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class CLD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class STD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class CLI(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class STI(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
62
src/arch/x86/isa/insts/input_output/__init__.py
Normal file
62
src/arch/x86/isa/insts/input_output/__init__.py
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
categories = ["general_io",
|
||||||
|
"string_io"]
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
for category in categories:
|
||||||
|
exec "import %s as cat" % category
|
||||||
|
microcode += cat.microcode
|
62
src/arch/x86/isa/insts/input_output/general_io.py
Normal file
62
src/arch/x86/isa/insts/input_output/general_io.py
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class IN(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class OUT(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
78
src/arch/x86/isa/insts/input_output/string_io.py
Normal file
78
src/arch/x86/isa/insts/input_output/string_io.py
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class INS(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class INSB(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class INSW(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class INSD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class INSQ(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class OUTS(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class OUTSB(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class OUTSW(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class OUTSD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class OUTSQ(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
60
src/arch/x86/isa/insts/load_effective_address.py
Normal file
60
src/arch/x86/isa/insts/load_effective_address.py
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class LEA(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
72
src/arch/x86/isa/insts/load_segment_registers.py
Normal file
72
src/arch/x86/isa/insts/load_segment_registers.py
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class LDS(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class LES(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class LFS(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class LGS(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class LSS(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class MOV_SEG(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class POP(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
81
src/arch/x86/isa/insts/logical.py
Normal file
81
src/arch/x86/isa/insts/logical.py
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = '''
|
||||||
|
def macroop XOR
|
||||||
|
{
|
||||||
|
xor "env.reg", "env.reg", "env.regm"
|
||||||
|
};
|
||||||
|
'''
|
||||||
|
#let {{
|
||||||
|
#microcodeString = '''
|
||||||
|
# def macroop AND
|
||||||
|
# {
|
||||||
|
# And reg reg regm
|
||||||
|
# };
|
||||||
|
# def macroop OR
|
||||||
|
# {
|
||||||
|
# Or reg reg regm
|
||||||
|
# };
|
||||||
|
# def macroop XOR
|
||||||
|
# {
|
||||||
|
# Xor reg reg regm
|
||||||
|
# };
|
||||||
|
# def macroop NOT
|
||||||
|
# {
|
||||||
|
# Xor reg reg "0xFFFFFFFFFFFFFFFFULL"
|
||||||
|
# };
|
||||||
|
#'''
|
||||||
|
#}};
|
60
src/arch/x86/isa/insts/no_operation.py
Normal file
60
src/arch/x86/isa/insts/no_operation.py
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class NOP(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
60
src/arch/x86/isa/insts/processor_information.py
Normal file
60
src/arch/x86/isa/insts/processor_information.py
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class CPUID(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
62
src/arch/x86/isa/insts/rotate_and_shift/__init__.py
Normal file
62
src/arch/x86/isa/insts/rotate_and_shift/__init__.py
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
categories = ["rotate",
|
||||||
|
"shift"]
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
for category in categories:
|
||||||
|
exec "import %s as cat" % category
|
||||||
|
microcode += cat.microcode
|
66
src/arch/x86/isa/insts/rotate_and_shift/rotate.py
Normal file
66
src/arch/x86/isa/insts/rotate_and_shift/rotate.py
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class RCL(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class RCR(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class ROL(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class ROR(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
70
src/arch/x86/isa/insts/rotate_and_shift/shift.py
Normal file
70
src/arch/x86/isa/insts/rotate_and_shift/shift.py
Normal file
|
@ -0,0 +1,70 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class SAL(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class SAR(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class SHL(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class SHR(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class SHLD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class SHRD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
68
src/arch/x86/isa/insts/semaphores.py
Normal file
68
src/arch/x86/isa/insts/semaphores.py
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class CMPXCHG(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class CMPXCHG8B(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class CMPXCHG16B(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class XADD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class XCHG(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
65
src/arch/x86/isa/insts/string/__init__.py
Normal file
65
src/arch/x86/isa/insts/string/__init__.py
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
categories = ["compare_strings",
|
||||||
|
"load_string",
|
||||||
|
"move_string",
|
||||||
|
"scan_string",
|
||||||
|
"store_string"]
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
for category in categories:
|
||||||
|
exec "import %s as cat" % category
|
||||||
|
microcode += cat.microcode
|
68
src/arch/x86/isa/insts/string/compare_strings.py
Normal file
68
src/arch/x86/isa/insts/string/compare_strings.py
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class CMPS(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class CMPSB(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class CMPSW(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class CMPSD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class CMPSQ(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
68
src/arch/x86/isa/insts/string/load_string.py
Normal file
68
src/arch/x86/isa/insts/string/load_string.py
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class LODS(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class LODSB(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class LODSW(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class LODSD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class LODSQ(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
68
src/arch/x86/isa/insts/string/move_string.py
Normal file
68
src/arch/x86/isa/insts/string/move_string.py
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class MOVS(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class MOVSB(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class MOVSW(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class MOVSD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class MOVSQ(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
68
src/arch/x86/isa/insts/string/scan_string.py
Normal file
68
src/arch/x86/isa/insts/string/scan_string.py
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class SCAS(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class SCASB(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class SCASW(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class SCASD(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class SCASQ(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
68
src/arch/x86/isa/insts/string/store_string.py
Normal file
68
src/arch/x86/isa/insts/string/store_string.py
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class STOS(Inst):
|
||||||
|
# "Add 0 0 0"
|
||||||
|
# class STOSB(Inst):
|
||||||
|
# "Add 0 0 0"
|
||||||
|
# class STOSW(Inst):
|
||||||
|
# "Add 0 0 0"
|
||||||
|
# class STOSD(Inst):
|
||||||
|
# "Add 0 0 0"
|
||||||
|
# class STOSQ(Inst):
|
||||||
|
# "Add 0 0 0"
|
||||||
|
#}};
|
66
src/arch/x86/isa/insts/system_calls.py
Normal file
66
src/arch/x86/isa/insts/system_calls.py
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
# Copyright (c) 2007 The Hewlett-Packard Development Company
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this software in source and binary forms,
|
||||||
|
# with or without modification, are permitted provided that the
|
||||||
|
# following conditions are met:
|
||||||
|
#
|
||||||
|
# The software must be used only for Non-Commercial Use which means any
|
||||||
|
# use which is NOT directed to receiving any direct monetary
|
||||||
|
# compensation for, or commercial advantage from such use. Illustrative
|
||||||
|
# examples of non-commercial use are academic research, personal study,
|
||||||
|
# teaching, education and corporate research & development.
|
||||||
|
# Illustrative examples of commercial use are distributing products for
|
||||||
|
# commercial advantage and providing services using the software for
|
||||||
|
# commercial advantage.
|
||||||
|
#
|
||||||
|
# If you wish to use this software or functionality therein that may be
|
||||||
|
# covered by patents for commercial use, please contact:
|
||||||
|
# Director of Intellectual Property Licensing
|
||||||
|
# Office of Strategy and Technology
|
||||||
|
# Hewlett-Packard Company
|
||||||
|
# 1501 Page Mill Road
|
||||||
|
# Palo Alto, California 94304
|
||||||
|
#
|
||||||
|
# Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer. Redistributions
|
||||||
|
# in binary form must reproduce the above copyright notice, this list of
|
||||||
|
# conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution. Neither the name of
|
||||||
|
# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission. No right of
|
||||||
|
# sublicense is granted herewith. Derivatives of the software and
|
||||||
|
# output created using the software may be prepared, but only for
|
||||||
|
# Non-Commercial Uses. Derivatives of the software may be shared with
|
||||||
|
# others provided: (i) the others agree to abide by the list of
|
||||||
|
# conditions herein which includes the Non-Commercial Use restrictions;
|
||||||
|
# and (ii) such Derivatives of the software include the above copyright
|
||||||
|
# notice to acknowledge the contribution from this software where
|
||||||
|
# applicable, this list of conditions and the disclaimer below.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# Authors: Gabe Black
|
||||||
|
|
||||||
|
microcode = ""
|
||||||
|
#let {{
|
||||||
|
# class SYSENTER(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class SYSEXIT(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class SYSCALL(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
# class SYSRET(Inst):
|
||||||
|
# "GenFault ${new UnimpInstFault}"
|
||||||
|
#}};
|
Loading…
Reference in a new issue