~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/mips/include/asm/inst.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/mips/include/asm/inst.h (Architecture mips) and /arch/sparc64/include/asm-sparc64/inst.h (Architecture sparc64)


  1 /*                                                  1 
  2  * Format of an instruction in memory.            
  3  *                                                
  4  * This file is subject to the terms and condi    
  5  * License.  See the file "COPYING" in the mai    
  6  * for more details.                              
  7  *                                                
  8  * Copyright (C) 1996, 2000 by Ralf Baechle       
  9  * Copyright (C) 2006 by Thiemo Seufer            
 10  */                                               
 11 #ifndef _ASM_INST_H                               
 12 #define _ASM_INST_H                               
 13                                                   
 14 #include <uapi/asm/inst.h>                        
 15                                                   
 16 /* HACHACHAHCAHC ...  */                          
 17                                                   
 18 /* In case some other massaging is needed, kee    
 19                                                   
 20 #define MIPSInst(x) x                             
 21                                                   
 22 #define I_OPCODE_SFT    26                        
 23 #define MIPSInst_OPCODE(x) (MIPSInst(x) >> I_O    
 24                                                   
 25 #define I_JTARGET_SFT   0                         
 26 #define MIPSInst_JTARGET(x) (MIPSInst(x) & 0x0    
 27                                                   
 28 #define I_RS_SFT        21                        
 29 #define MIPSInst_RS(x) ((MIPSInst(x) & 0x03e00    
 30                                                   
 31 #define I_RT_SFT        16                        
 32 #define MIPSInst_RT(x) ((MIPSInst(x) & 0x001f0    
 33                                                   
 34 #define I_IMM_SFT       0                         
 35 #define MIPSInst_SIMM(x) ((int)((short)(MIPSIn    
 36 #define MIPSInst_UIMM(x) (MIPSInst(x) & 0xffff    
 37                                                   
 38 #define I_CACHEOP_SFT   18                        
 39 #define MIPSInst_CACHEOP(x) ((MIPSInst(x) & 0x    
 40                                                   
 41 #define I_CACHESEL_SFT  16                        
 42 #define MIPSInst_CACHESEL(x) ((MIPSInst(x) & 0    
 43                                                   
 44 #define I_RD_SFT        11                        
 45 #define MIPSInst_RD(x) ((MIPSInst(x) & 0x0000f    
 46                                                   
 47 #define I_RE_SFT        6                         
 48 #define MIPSInst_RE(x) ((MIPSInst(x) & 0x00000    
 49                                                   
 50 #define I_FUNC_SFT      0                         
 51 #define MIPSInst_FUNC(x) (MIPSInst(x) & 0x0000    
 52                                                   
 53 #define I_FFMT_SFT      21                        
 54 #define MIPSInst_FFMT(x) ((MIPSInst(x) & 0x01e    
 55                                                   
 56 #define I_FT_SFT        16                        
 57 #define MIPSInst_FT(x) ((MIPSInst(x) & 0x001f0    
 58                                                   
 59 #define I_FS_SFT        11                        
 60 #define MIPSInst_FS(x) ((MIPSInst(x) & 0x0000f    
 61                                                   
 62 #define I_FD_SFT        6                         
 63 #define MIPSInst_FD(x) ((MIPSInst(x) & 0x00000    
 64                                                   
 65 #define I_FR_SFT        21                        
 66 #define MIPSInst_FR(x) ((MIPSInst(x) & 0x03e00    
 67                                                   
 68 #define I_FMA_FUNC_SFT  3                         
 69 #define MIPSInst_FMA_FUNC(x) ((MIPSInst(x) & 0    
 70                                                   
 71 #define I_FMA_FFMT_SFT  0                         
 72 #define MIPSInst_FMA_FFMT(x) (MIPSInst(x) & 0x    
 73                                                   
 74 typedef unsigned int mips_instruction;            
 75                                                   
 76 /* microMIPS instruction decode structure. Do     
 77 struct mm_decoded_insn {                          
 78         mips_instruction insn;                    
 79         mips_instruction next_insn;               
 80         int pc_inc;                               
 81         int next_pc_inc;                          
 82         int micro_mips_mode;                      
 83 };                                                
 84                                                   
 85 /* Recode table from 16-bit register notation     
 86 extern const int reg16to32[];                     
 87                                                   
 88 #endif /* _ASM_INST_H */                          
 89                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php