Revision 33d68b5f target-mips/mips-defs.h

b/target-mips/mips-defs.h
6 6
/* If we want to use host float regs... */
7 7
//#define USE_HOST_FLOAT_REGS
8 8

  
9
#define MIPS_R4Kc 0x00018000
10
#define MIPS_R4Kp 0x00018300
11

  
12
/* Emulate MIPS R4Kc for now */
13
#define MIPS_CPU MIPS_R4Kc
14

  
15
#if (MIPS_CPU == MIPS_R4Kc)
16 9
/* 32 bits target */
17 10
#undef MIPS_HAS_MIPS64
18 11
//#define MIPS_HAS_MIPS64 1
19 12
/* real pages are variable size... */
20 13
#define TARGET_PAGE_BITS 12
21
/* Uses MIPS R4Kx enhancements to MIPS32 architecture */
22
#define MIPS_USES_R4K_EXT
23 14
/* Uses MIPS R4Kc TLB model */
24 15
#define MIPS_USES_R4K_TLB
25 16
#define MIPS_TLB_NB 16
26 17
#define MIPS_TLB_MAX 128
27
/* basic FPU register support */
28
#define MIPS_USES_FPU 1
29 18
/* Define a implementation number of 1.
30 19
 * Define a major version 1, minor version 0.
31 20
 */
......
63 52
((0 << CP0C3_M) | (0 << CP0C3_DSPP) | (0 << CP0C3_LPA) |          \
64 53
 (0 << CP0C3_VEIC) | (0 << CP0C3_VInt) | (0 << CP0C3_SP) |        \
65 54
 (0 << CP0C3_MT) | (0 << CP0C3_SM) | (0 << CP0C3_TL))
66
#elif (MIPS_CPU == MIPS_R4Kp)
67
/* 32 bits target */
68
#undef MIPS_HAS_MIPS64
69
/* real pages are variable size... */
70
#define TARGET_PAGE_BITS 12
71
/* Uses MIPS R4Kx enhancements to MIPS32 architecture */
72
#define MIPS_USES_R4K_EXT
73
/* Uses MIPS R4Km FPM MMU model */
74
#define MIPS_USES_R4K_FPM
75
#else
76
#error "MIPS CPU not defined"
77
/* Reminder for other flags */
78
//#undef MIPS_HAS_MIPS64
79
//#define MIPS_USES_FPU
80
#endif
81 55

  
82 56
#ifdef MIPS_HAS_MIPS64
83 57
#define TARGET_LONG_BITS 64

Also available in: Unified diff