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