Revision 36d23958 target-mips/mips-defs.h
b/target-mips/mips-defs.h | ||
---|---|---|
45 | 45 |
2-way Icache, 64 sets Dcache, 16 bytes Dcache line, 2-way Dcache, |
46 | 46 |
no coprocessor2 attached, no MDMX support attached, |
47 | 47 |
no performance counters, watch registers present, |
48 |
no code compression, EJTAG present, FPU enable bit depending on |
|
49 |
MIPS_USES_FPU */ |
|
50 |
#define MIPS_CONFIG1_1 \ |
|
48 |
no code compression, EJTAG present, no FPU */ |
|
49 |
#define MIPS_CONFIG1 \ |
|
51 | 50 |
((1 << CP0C1_M) | ((MIPS_TLB_NB - 1) << CP0C1_MMU) | \ |
52 | 51 |
(0x0 << CP0C1_IS) | (0x3 << CP0C1_IL) | (0x1 << CP0C1_IA) | \ |
53 | 52 |
(0x0 << CP0C1_DS) | (0x3 << CP0C1_DL) | (0x1 << CP0C1_DA) | \ |
54 | 53 |
(0 << CP0C1_C2) | (0 << CP0C1_MD) | (0 << CP0C1_PC) | \ |
55 |
(1 << CP0C1_WR) | (0 << CP0C1_CA) | (1 << CP0C1_EP)) |
|
56 |
#ifdef MIPS_USES_FPU |
|
57 |
#define MIPS_CONFIG1 (MIPS_CONFIG1_1 | (1 << CP0C1_FP)) |
|
58 |
#else |
|
59 |
#define MIPS_CONFIG1 (MIPS_CONFIG1_1 | (0 << CP0C1_FP)) |
|
60 |
#endif |
|
54 |
(1 << CP0C1_WR) | (0 << CP0C1_CA) | (1 << CP0C1_EP) | \ |
|
55 |
(0 << CP0C1_FP)) |
|
61 | 56 |
/* Have config3, no tertiary/secondary caches implemented */ |
62 | 57 |
#define MIPS_CONFIG2 \ |
63 | 58 |
((1 << CP0C2_M)) |
Also available in: Unified diff