⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hppa.h

📁 这个是LINUX下的GDB调度工具的源码
💻 H
📖 第 1 页 / 共 4 页
字号:
/* Table of opcodes for the PA-RISC.   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000,   2001, 2002   Free Software Foundation, Inc.   Contributed by the Center for Software Science at the   University of Utah (pa-gdb-bugs@cs.utah.edu).This file is part of GAS, the GNU Assembler, and GDB, the GNU disassembler.GAS/GDB is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 1, or (at your option)any later version.GAS/GDB is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with GAS or GDB; see the file COPYING.  If not, write tothe Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */#if !defined(__STDC__) && !defined(const)#define const#endif/* * Structure of an opcode table entry. *//* There are two kinds of delay slot nullification: normal which is * controled by the nullification bit, and conditional, which depends * on the direction of the branch and its success or failure. * * NONE is unfortunately #defined in the hiux system include files.   * #undef it away. */#undef NONEstruct pa_opcode{    const char *name;    unsigned long int match;	/* Bits that must be set...  */    unsigned long int mask;	/* ... in these bits. */    char *args;    enum pa_arch arch;    char flags;};/* Enable/disable strict syntax checking.  Not currently used, but will   be necessary for PA2.0 support in the future.  */#define FLAG_STRICT 0x1/*   All hppa opcodes are 32 bits.   The match component is a mask saying which bits must match a   particular opcode in order for an instruction to be an instance   of that opcode.   The args component is a string containing one character for each operand of   the instruction.  Characters used as a prefix allow any second character to   be used without conflicting with the main operand characters.   Bit positions in this description follow HP usage of lsb = 31,   "at" is lsb of field.   In the args field, the following characters must match exactly:	'+,() '   In the args field, the following characters are unused:	'  "         -  /   34 6789:;    '	'@  C         M             [\]  '	'`    e g                     }  '   Here are all the characters:	' !"#$%&'()*+-,./0123456789:;<=>?'	'@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_'	'`abcdefghijklmnopqrstuvwxyz{|}~ 'Kinds of operands:   x    integer register field at 15.   b    integer register field at 10.   t    integer register field at 31.   a	integer register field at 10 and 15 (for PERMH)   5    5 bit immediate at 15.   s    2 bit space specifier at 17.   S    3 bit space specifier at 18.   V    5 bit immediate value at 31   i    11 bit immediate value at 31   j    14 bit immediate value at 31   k    21 bit immediate value at 31   l    16 bit immediate value at 31 (wide mode only, unusual encoding).   n	nullification for branch instructions   N	nullification for spop and copr instructions   w    12 bit branch displacement   W    17 bit branch displacement (PC relative)   X    22 bit branch displacement (PC relative)   z    17 bit branch displacement (just a number, not an address)Also these:   .    2 bit shift amount at 25   *    4 bit shift amount at 25   p    5 bit shift count at 26 (to support the SHD instruction) encoded as        31-p   ~    6 bit shift count at 20,22:26 encoded as 63-~.   P    5 bit bit position at 26   q    6 bit bit position at 20,22:26   T    5 bit field length at 31 (encoded as 32-T)   %	6 bit field length at 23,27:31 (variable extract/deposit)   |	6 bit field length at 19,27:31 (fixed extract/deposit)   A    13 bit immediate at 18 (to support the BREAK instruction)   ^	like b, but describes a control register   !    sar (cr11) register   D    26 bit immediate at 31 (to support the DIAG instruction)   $    9 bit immediate at 28 (to support POPBTS)   v    3 bit Special Function Unit identifier at 25   O    20 bit Special Function Unit operation split between 15 bits at 20        and 5 bits at 31   o    15 bit Special Function Unit operation at 20   2    22 bit Special Function Unit operation split between 17 bits at 20        and 5 bits at 31   1    15 bit Special Function Unit operation split between 10 bits at 20        and 5 bits at 31   0    10 bit Special Function Unit operation split between 5 bits at 20        and 5 bits at 31   u    3 bit coprocessor unit identifier at 25   F    Source Floating Point Operand Format Completer encoded 2 bits at 20   I    Source Floating Point Operand Format Completer encoded 1 bits at 20	(for 0xe format FP instructions)   G    Destination Floating Point Operand Format Completer encoded 2 bits at 18   H    Floating Point Operand Format at 26 for 'fmpyadd' and 'fmpysub'        (very similar to 'F')   r	5 bit immediate value at 31 (for the break instruction)	(very similar to V above, except the value is unsigned instead of	low_sign_ext)   R	5 bit immediate value at 15 (for the ssm, rsm, probei instructions)	(same as r above, except the value is in a different location)   U	10 bit immediate value at 15 (for SSM, RSM on pa2.0)   Q	5 bit immediate value at 10 (a bit position specified in	the bb instruction. It's the same as r above, except the        value is in a different location)   B	5 bit immediate value at 10 (a bit position specified in	the bb instruction. Similar to Q, but 64 bit handling is	different.   Z    %r1 -- implicit target of addil instruction.   L    ,%r2 completer for new syntax branch   {    Source format completer for fcnv   _    Destination format completer for fcnv   h    cbit for fcmp   =    gfx tests for ftest   d    14 bit offset for single precision FP long load/store.   #    14 bit offset for double precision FP load long/store.   J    Yet another 14 bit offset for load/store with ma,mb completers.   K    Yet another 14 bit offset for load/store with ma,mb completers.   y    16 bit offset for word aligned load/store (PA2.0 wide).   &    16 bit offset for dword aligned load/store (PA2.0 wide).   <    16 bit offset for load/store with ma,mb completers (PA2.0 wide).   >    16 bit offset for load/store with ma,mb completers (PA2.0 wide).   Y    %sr0,%r31 -- implicit target of be,l instruction.   @	implicit immediate value of 0Completer operands all have 'c' as the prefix:   cx   indexed load completer.   cX   indexed load completer.  Like cx, but emits a space after        in disassembler.   cm   short load and store completer.   cM   short load and store completer.  Like cm, but emits a space        after in disassembler.   cq   long load and store completer (like cm, but inserted into a	different location in the target instruction).   cs   store bytes short completer.   cA   store bytes short completer.  Like cs, but emits a space        after in disassembler.   ce   long load/store completer for LDW/STW with a different encoding than the	others   cc   load cache control hint   cd   load and clear cache control hint   cC   store cache control hint   co	ordered access   cp	branch link and push completer   cP	branch pop completer   cl	branch link completer   cg	branch gate completer   cw	read/write completer for PROBE   cW	wide completer for MFCTL   cL	local processor completer for cache control   cZ   System Control Completer (to support LPA, LHA, etc.)   ci	correction completer for DCOR   ca	add completer   cy	32 bit add carry completer   cY	64 bit add carry completer   cv	signed overflow trap completer   ct	trap on condition completer for ADDI, SUB   cT	trap on condition completer for UADDCM   cb	32 bit borrow completer for SUB   cB	64 bit borrow completer for SUB   ch	left/right half completer   cH	signed/unsigned saturation completer   cS	signed/unsigned completer at 21   cz	zero/sign extension completer.   c*	permutation completerCondition operands all have '?' as the prefix:   ?f   Floating point compare conditions (encoded as 5 bits at 31)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -