root / target-mips / mips-defs.h @ a35f3ec7
History | View | Annotate | Download (1.9 kB)
1 | 6af0bf9c | bellard | #if !defined (__QEMU_MIPS_DEFS_H__)
|
---|---|---|---|
2 | 6af0bf9c | bellard | #define __QEMU_MIPS_DEFS_H__
|
3 | 6af0bf9c | bellard | |
4 | 6af0bf9c | bellard | /* If we want to use host float regs... */
|
5 | 6af0bf9c | bellard | //#define USE_HOST_FLOAT_REGS
|
6 | 6af0bf9c | bellard | |
7 | e9c71dd1 | ths | /* Real pages are variable size... */
|
8 | 6af0bf9c | bellard | #define TARGET_PAGE_BITS 12 |
9 | 814b9a47 | ths | #define MIPS_TLB_MAX 128 |
10 | 6af0bf9c | bellard | |
11 | d26bc211 | ths | #if defined(TARGET_MIPS64)
|
12 | c570fd16 | ths | #define TARGET_LONG_BITS 64 |
13 | c570fd16 | ths | #else
|
14 | c570fd16 | ths | #define TARGET_LONG_BITS 32 |
15 | c570fd16 | ths | #endif
|
16 | c570fd16 | ths | |
17 | dab6322b | ths | /* Even MIPS32 can have 36 bits physical address space. */
|
18 | dab6322b | ths | #define TARGET_PHYS_ADDR_BITS 64 |
19 | dab6322b | ths | |
20 | e189e748 | ths | /* Masks used to mark instructions to indicate which ISA level they
|
21 | e189e748 | ths | were introduced in. */
|
22 | e189e748 | ths | #define ISA_MIPS1 0x00000001 |
23 | e189e748 | ths | #define ISA_MIPS2 0x00000002 |
24 | e189e748 | ths | #define ISA_MIPS3 0x00000004 |
25 | e189e748 | ths | #define ISA_MIPS4 0x00000008 |
26 | e189e748 | ths | #define ISA_MIPS5 0x00000010 |
27 | e189e748 | ths | #define ISA_MIPS32 0x00000020 |
28 | e189e748 | ths | #define ISA_MIPS32R2 0x00000040 |
29 | e189e748 | ths | #define ISA_MIPS64 0x00000080 |
30 | e189e748 | ths | #define ISA_MIPS64R2 0x00000100 |
31 | e189e748 | ths | |
32 | e9c71dd1 | ths | /* MIPS ASEs. */
|
33 | e189e748 | ths | #define ASE_MIPS16 0x00001000 |
34 | e189e748 | ths | #define ASE_MIPS3D 0x00002000 |
35 | e189e748 | ths | #define ASE_MDMX 0x00004000 |
36 | e189e748 | ths | #define ASE_DSP 0x00008000 |
37 | e189e748 | ths | #define ASE_DSPR2 0x00010000 |
38 | 7385ac0b | ths | #define ASE_MT 0x00020000 |
39 | 7385ac0b | ths | #define ASE_SMARTMIPS 0x00040000 |
40 | e189e748 | ths | |
41 | e9c71dd1 | ths | /* Chip specific instructions. */
|
42 | e9c71dd1 | ths | #define INSN_VR54XX 0x80000000 |
43 | e189e748 | ths | |
44 | e9c71dd1 | ths | /* MIPS CPU defines. */
|
45 | e189e748 | ths | #define CPU_MIPS1 (ISA_MIPS1)
|
46 | e189e748 | ths | #define CPU_MIPS2 (CPU_MIPS1 | ISA_MIPS2)
|
47 | e189e748 | ths | #define CPU_MIPS3 (CPU_MIPS2 | ISA_MIPS3)
|
48 | e189e748 | ths | #define CPU_MIPS4 (CPU_MIPS3 | ISA_MIPS4)
|
49 | e9c71dd1 | ths | #define CPU_VR54XX (CPU_MIPS4 | INSN_VR54XX)
|
50 | e9c71dd1 | ths | |
51 | e189e748 | ths | #define CPU_MIPS5 (CPU_MIPS4 | ISA_MIPS5)
|
52 | e189e748 | ths | |
53 | e9c71dd1 | ths | /* MIPS Technologies "Release 1" */
|
54 | e189e748 | ths | #define CPU_MIPS32 (CPU_MIPS2 | ISA_MIPS32)
|
55 | e189e748 | ths | #define CPU_MIPS64 (CPU_MIPS5 | CPU_MIPS32 | ISA_MIPS64)
|
56 | e189e748 | ths | |
57 | e9c71dd1 | ths | /* MIPS Technologies "Release 2" */
|
58 | e189e748 | ths | #define CPU_MIPS32R2 (CPU_MIPS32 | ISA_MIPS32R2)
|
59 | e189e748 | ths | #define CPU_MIPS64R2 (CPU_MIPS64 | CPU_MIPS32R2 | ISA_MIPS64R2)
|
60 | e189e748 | ths | |
61 | 19221bda | ths | /* Strictly follow the architecture standard:
|
62 | 19221bda | ths | - Disallow "special" instruction handling for PMON/SPIM.
|
63 | 19221bda | ths | Note that we still maintain Count/Compare to match the host clock. */
|
64 | b48cfdff | ths | //#define MIPS_STRICT_STANDARD 1
|
65 | b48cfdff | ths | |
66 | 6af0bf9c | bellard | #endif /* !defined (__QEMU_MIPS_DEFS_H__) */ |