Commit 60aa19abefe2dc4d67a273dd0fa3b81810cdf21c

Authored by ths
1 parent fbe4f65b

Actually enable 64bit configuration.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2565 c046a42c-6fe2-441c-8c8c-71466251a162
hw/mips_malta.c
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 #define BIOS_FILENAME "mipsel_bios.bin" 30 #define BIOS_FILENAME "mipsel_bios.bin"
31 #endif 31 #endif
32 32
33 -#ifdef MIPS_HAS_MIPS64 33 +#ifdef TARGET_MIPS64
34 #define INITRD_LOAD_ADDR (int64_t)0x80800000 34 #define INITRD_LOAD_ADDR (int64_t)0x80800000
35 #else 35 #else
36 #define INITRD_LOAD_ADDR (int32_t)0x80800000 36 #define INITRD_LOAD_ADDR (int32_t)0x80800000
@@ -662,7 +662,7 @@ void mips_malta_init (int ram_size, int vga_ram_size, int boot_device, @@ -662,7 +662,7 @@ void mips_malta_init (int ram_size, int vga_ram_size, int boot_device,
662 662
663 /* init CPUs */ 663 /* init CPUs */
664 if (cpu_model == NULL) { 664 if (cpu_model == NULL) {
665 -#ifdef MIPS_HAS_MIPS64 665 +#ifdef TARGET_MIPS64
666 cpu_model = "R4000"; 666 cpu_model = "R4000";
667 #else 667 #else
668 cpu_model = "4KEc"; 668 cpu_model = "4KEc";
hw/mips_r4k.c
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 #define BIOS_FILENAME "mipsel_bios.bin" 15 #define BIOS_FILENAME "mipsel_bios.bin"
16 #endif 16 #endif
17 17
18 -#ifdef MIPS_HAS_MIPS64 18 +#ifdef TARGET_MIPS64
19 #define INITRD_LOAD_ADDR (int64_t)(int32_t)0x80800000 19 #define INITRD_LOAD_ADDR (int64_t)(int32_t)0x80800000
20 #else 20 #else
21 #define INITRD_LOAD_ADDR (int32_t)0x80800000 21 #define INITRD_LOAD_ADDR (int32_t)0x80800000
@@ -142,7 +142,7 @@ void mips_r4k_init (int ram_size, int vga_ram_size, int boot_device, @@ -142,7 +142,7 @@ void mips_r4k_init (int ram_size, int vga_ram_size, int boot_device,
142 142
143 /* init CPUs */ 143 /* init CPUs */
144 if (cpu_model == NULL) { 144 if (cpu_model == NULL) {
145 -#ifdef MIPS_HAS_MIPS64 145 +#ifdef TARGET_MIPS64
146 cpu_model = "R4000"; 146 cpu_model = "R4000";
147 #else 147 #else
148 cpu_model = "4KEc"; 148 cpu_model = "4KEc";
target-mips/exec.h
@@ -65,7 +65,7 @@ static inline void regs_to_env(void) @@ -65,7 +65,7 @@ static inline void regs_to_env(void)
65 { 65 {
66 } 66 }
67 67
68 -#ifdef MIPS_HAS_MIPS64 68 +#ifdef TARGET_MIPS64
69 #if TARGET_LONG_BITS > HOST_LONG_BITS 69 #if TARGET_LONG_BITS > HOST_LONG_BITS
70 void do_dsll (void); 70 void do_dsll (void);
71 void do_dsll32 (void); 71 void do_dsll32 (void);
@@ -92,7 +92,7 @@ void do_msubu (void); @@ -92,7 +92,7 @@ void do_msubu (void);
92 void do_ddiv (void); 92 void do_ddiv (void);
93 void do_ddivu (void); 93 void do_ddivu (void);
94 #endif 94 #endif
95 -#ifdef MIPS_HAS_MIPS64 95 +#ifdef TARGET_MIPS64
96 void do_dmult (void); 96 void do_dmult (void);
97 void do_dmultu (void); 97 void do_dmultu (void);
98 #endif 98 #endif
@@ -114,7 +114,7 @@ void do_lwl_raw (uint32_t); @@ -114,7 +114,7 @@ void do_lwl_raw (uint32_t);
114 void do_lwr_raw (uint32_t); 114 void do_lwr_raw (uint32_t);
115 uint32_t do_swl_raw (uint32_t); 115 uint32_t do_swl_raw (uint32_t);
116 uint32_t do_swr_raw (uint32_t); 116 uint32_t do_swr_raw (uint32_t);
117 -#ifdef MIPS_HAS_MIPS64 117 +#ifdef TARGET_MIPS64
118 void do_ldl_raw (uint64_t); 118 void do_ldl_raw (uint64_t);
119 void do_ldr_raw (uint64_t); 119 void do_ldr_raw (uint64_t);
120 uint64_t do_sdl_raw (uint64_t); 120 uint64_t do_sdl_raw (uint64_t);
@@ -129,7 +129,7 @@ uint32_t do_swl_user (uint32_t); @@ -129,7 +129,7 @@ uint32_t do_swl_user (uint32_t);
129 uint32_t do_swl_kernel (uint32_t); 129 uint32_t do_swl_kernel (uint32_t);
130 uint32_t do_swr_user (uint32_t); 130 uint32_t do_swr_user (uint32_t);
131 uint32_t do_swr_kernel (uint32_t); 131 uint32_t do_swr_kernel (uint32_t);
132 -#ifdef MIPS_HAS_MIPS64 132 +#ifdef TARGET_MIPS64
133 void do_ldl_user (uint64_t); 133 void do_ldl_user (uint64_t);
134 void do_ldl_kernel (uint64_t); 134 void do_ldl_kernel (uint64_t);
135 void do_ldr_user (uint64_t); 135 void do_ldr_user (uint64_t);
target-mips/mips-defs.h
@@ -6,9 +6,6 @@ @@ -6,9 +6,6 @@
6 /* If we want to use host float regs... */ 6 /* If we want to use host float regs... */
7 //#define USE_HOST_FLOAT_REGS 7 //#define USE_HOST_FLOAT_REGS
8 8
9 -/* 32 bits target */  
10 -#undef MIPS_HAS_MIPS64  
11 -//#define MIPS_HAS_MIPS64 1  
12 /* real pages are variable size... */ 9 /* real pages are variable size... */
13 #define TARGET_PAGE_BITS 12 10 #define TARGET_PAGE_BITS 12
14 /* Uses MIPS R4Kc TLB model */ 11 /* Uses MIPS R4Kc TLB model */
@@ -16,7 +13,7 @@ @@ -16,7 +13,7 @@
16 #define MIPS_TLB_NB 16 13 #define MIPS_TLB_NB 16
17 #define MIPS_TLB_MAX 128 14 #define MIPS_TLB_MAX 128
18 15
19 -#ifdef MIPS_HAS_MIPS64 16 +#ifdef TARGET_MIPS64
20 #define TARGET_LONG_BITS 64 17 #define TARGET_LONG_BITS 64
21 #else 18 #else
22 #define TARGET_LONG_BITS 32 19 #define TARGET_LONG_BITS 32
target-mips/op.c
@@ -386,7 +386,7 @@ void op_divu (void) @@ -386,7 +386,7 @@ void op_divu (void)
386 RETURN(); 386 RETURN();
387 } 387 }
388 388
389 -#ifdef MIPS_HAS_MIPS64 389 +#ifdef TARGET_MIPS64
390 /* Arithmetic */ 390 /* Arithmetic */
391 void op_dadd (void) 391 void op_dadd (void)
392 { 392 {
@@ -464,7 +464,7 @@ void op_ddivu (void) @@ -464,7 +464,7 @@ void op_ddivu (void)
464 RETURN(); 464 RETURN();
465 } 465 }
466 #endif 466 #endif
467 -#endif /* MIPS_HAS_MIPS64 */ 467 +#endif /* TARGET_MIPS64 */
468 468
469 /* Logical */ 469 /* Logical */
470 void op_and (void) 470 void op_and (void)
@@ -586,7 +586,7 @@ void op_clz (void) @@ -586,7 +586,7 @@ void op_clz (void)
586 RETURN(); 586 RETURN();
587 } 587 }
588 588
589 -#ifdef MIPS_HAS_MIPS64 589 +#ifdef TARGET_MIPS64
590 590
591 #if TARGET_LONG_BITS > HOST_LONG_BITS 591 #if TARGET_LONG_BITS > HOST_LONG_BITS
592 /* Those might call libgcc functions. */ 592 /* Those might call libgcc functions. */
@@ -891,7 +891,7 @@ void op_msubu (void) @@ -891,7 +891,7 @@ void op_msubu (void)
891 } 891 }
892 #endif /* TARGET_LONG_BITS > HOST_LONG_BITS */ 892 #endif /* TARGET_LONG_BITS > HOST_LONG_BITS */
893 893
894 -#ifdef MIPS_HAS_MIPS64 894 +#ifdef TARGET_MIPS64
895 void op_dmult (void) 895 void op_dmult (void)
896 { 896 {
897 CALL_FROM_TB0(do_dmult); 897 CALL_FROM_TB0(do_dmult);
@@ -2213,7 +2213,7 @@ void op_wsbh(void) @@ -2213,7 +2213,7 @@ void op_wsbh(void)
2213 RETURN(); 2213 RETURN();
2214 } 2214 }
2215 2215
2216 -#ifdef MIPS_HAS_MIPS64 2216 +#ifdef TARGET_MIPS64
2217 void op_dext(void) 2217 void op_dext(void)
2218 { 2218 {
2219 unsigned int pos = PARAM1; 2219 unsigned int pos = PARAM1;
target-mips/op_helper.c
@@ -79,7 +79,7 @@ void do_raise_exception_direct (uint32_t exception) @@ -79,7 +79,7 @@ void do_raise_exception_direct (uint32_t exception)
79 #undef MEMSUFFIX 79 #undef MEMSUFFIX
80 #endif 80 #endif
81 81
82 -#ifdef MIPS_HAS_MIPS64 82 +#ifdef TARGET_MIPS64
83 #if TARGET_LONG_BITS > HOST_LONG_BITS 83 #if TARGET_LONG_BITS > HOST_LONG_BITS
84 /* Those might call libgcc functions. */ 84 /* Those might call libgcc functions. */
85 void do_dsll (void) 85 void do_dsll (void)
@@ -161,7 +161,7 @@ void do_drotrv (void) @@ -161,7 +161,7 @@ void do_drotrv (void)
161 T0 = T1; 161 T0 = T1;
162 } 162 }
163 #endif /* TARGET_LONG_BITS > HOST_LONG_BITS */ 163 #endif /* TARGET_LONG_BITS > HOST_LONG_BITS */
164 -#endif /* MIPS_HAS_MIPS64 */ 164 +#endif /* TARGET_MIPS64 */
165 165
166 /* 64 bits arithmetic for 32 bits hosts */ 166 /* 64 bits arithmetic for 32 bits hosts */
167 #if TARGET_LONG_BITS > HOST_LONG_BITS 167 #if TARGET_LONG_BITS > HOST_LONG_BITS
@@ -219,7 +219,7 @@ void do_msubu (void) @@ -219,7 +219,7 @@ void do_msubu (void)
219 } 219 }
220 #endif 220 #endif
221 221
222 -#ifdef MIPS_HAS_MIPS64 222 +#ifdef TARGET_MIPS64
223 void do_dmult (void) 223 void do_dmult (void)
224 { 224 {
225 /* XXX */ 225 /* XXX */
target-mips/op_helper_mem.c
@@ -124,7 +124,7 @@ uint32_t glue(do_swr, MEMSUFFIX) (uint32_t tmp) @@ -124,7 +124,7 @@ uint32_t glue(do_swr, MEMSUFFIX) (uint32_t tmp)
124 return tmp; 124 return tmp;
125 } 125 }
126 126
127 -#ifdef MIPS_HAS_MIPS64 127 +#ifdef TARGET_MIPS64
128 128
129 # ifdef TARGET_WORDS_BIGENDIAN 129 # ifdef TARGET_WORDS_BIGENDIAN
130 #define GET_LMASK64(v) ((v) & 4) 130 #define GET_LMASK64(v) ((v) & 4)
@@ -298,4 +298,4 @@ uint64_t glue(do_sdr, MEMSUFFIX) (uint64_t tmp) @@ -298,4 +298,4 @@ uint64_t glue(do_sdr, MEMSUFFIX) (uint64_t tmp)
298 return tmp; 298 return tmp;
299 } 299 }
300 300
301 -#endif /* MIPS_HAS_MIPS64 */ 301 +#endif /* TARGET_MIPS64 */
target-mips/op_mem.c
@@ -126,7 +126,7 @@ void glue(op_sc, MEMSUFFIX) (void) @@ -126,7 +126,7 @@ void glue(op_sc, MEMSUFFIX) (void)
126 RETURN(); 126 RETURN();
127 } 127 }
128 128
129 -#ifdef MIPS_HAS_MIPS64 129 +#ifdef TARGET_MIPS64
130 void glue(op_ld, MEMSUFFIX) (void) 130 void glue(op_ld, MEMSUFFIX) (void)
131 { 131 {
132 T0 = glue(ldq, MEMSUFFIX)(T0); 132 T0 = glue(ldq, MEMSUFFIX)(T0);
@@ -190,7 +190,7 @@ void glue(op_scd, MEMSUFFIX) (void) @@ -190,7 +190,7 @@ void glue(op_scd, MEMSUFFIX) (void)
190 } 190 }
191 RETURN(); 191 RETURN();
192 } 192 }
193 -#endif /* MIPS_HAS_MIPS64 */ 193 +#endif /* TARGET_MIPS64 */
194 194
195 void glue(op_lwc1, MEMSUFFIX) (void) 195 void glue(op_lwc1, MEMSUFFIX) (void)
196 { 196 {
target-mips/translate.c
@@ -611,7 +611,7 @@ static GenOpFunc *gen_op_s##width[] = { \ @@ -611,7 +611,7 @@ static GenOpFunc *gen_op_s##width[] = { \
611 } 611 }
612 #endif 612 #endif
613 613
614 -#ifdef MIPS_HAS_MIPS64 614 +#ifdef TARGET_MIPS64
615 OP_LD_TABLE(d); 615 OP_LD_TABLE(d);
616 OP_LD_TABLE(dl); 616 OP_LD_TABLE(dl);
617 OP_LD_TABLE(dr); 617 OP_LD_TABLE(dr);
@@ -660,7 +660,7 @@ static void gen_ldst (DisasContext *ctx, uint32_t opc, int rt, @@ -660,7 +660,7 @@ static void gen_ldst (DisasContext *ctx, uint32_t opc, int rt,
660 * memory access 660 * memory access
661 */ 661 */
662 switch (opc) { 662 switch (opc) {
663 -#ifdef MIPS_HAS_MIPS64 663 +#ifdef TARGET_MIPS64
664 case OPC_LD: 664 case OPC_LD:
665 op_ldst(ld); 665 op_ldst(ld);
666 GEN_STORE_TN_REG(rt, T0); 666 GEN_STORE_TN_REG(rt, T0);
@@ -872,7 +872,7 @@ static void gen_arith_imm (DisasContext *ctx, uint32_t opc, int rt, @@ -872,7 +872,7 @@ static void gen_arith_imm (DisasContext *ctx, uint32_t opc, int rt,
872 gen_op_add(); 872 gen_op_add();
873 opn = "addiu"; 873 opn = "addiu";
874 break; 874 break;
875 -#ifdef MIPS_HAS_MIPS64 875 +#ifdef TARGET_MIPS64
876 case OPC_DADDI: 876 case OPC_DADDI:
877 save_cpu_state(ctx, 1); 877 save_cpu_state(ctx, 1);
878 gen_op_daddo(); 878 gen_op_daddo();
@@ -923,7 +923,7 @@ static void gen_arith_imm (DisasContext *ctx, uint32_t opc, int rt, @@ -923,7 +923,7 @@ static void gen_arith_imm (DisasContext *ctx, uint32_t opc, int rt,
923 opn = "srl"; 923 opn = "srl";
924 } 924 }
925 break; 925 break;
926 -#ifdef MIPS_HAS_MIPS64 926 +#ifdef TARGET_MIPS64
927 case OPC_DSLL: 927 case OPC_DSLL:
928 gen_op_dsll(); 928 gen_op_dsll();
929 opn = "dsll"; 929 opn = "dsll";
@@ -1003,7 +1003,7 @@ static void gen_arith (DisasContext *ctx, uint32_t opc, @@ -1003,7 +1003,7 @@ static void gen_arith (DisasContext *ctx, uint32_t opc,
1003 gen_op_sub(); 1003 gen_op_sub();
1004 opn = "subu"; 1004 opn = "subu";
1005 break; 1005 break;
1006 -#ifdef MIPS_HAS_MIPS64 1006 +#ifdef TARGET_MIPS64
1007 case OPC_DADD: 1007 case OPC_DADD:
1008 save_cpu_state(ctx, 1); 1008 save_cpu_state(ctx, 1);
1009 gen_op_daddo(); 1009 gen_op_daddo();
@@ -1076,7 +1076,7 @@ static void gen_arith (DisasContext *ctx, uint32_t opc, @@ -1076,7 +1076,7 @@ static void gen_arith (DisasContext *ctx, uint32_t opc,
1076 opn = "srlv"; 1076 opn = "srlv";
1077 } 1077 }
1078 break; 1078 break;
1079 -#ifdef MIPS_HAS_MIPS64 1079 +#ifdef TARGET_MIPS64
1080 case OPC_DSLLV: 1080 case OPC_DSLLV:
1081 gen_op_dsllv(); 1081 gen_op_dsllv();
1082 opn = "dsllv"; 1082 opn = "dsllv";
@@ -1168,7 +1168,7 @@ static void gen_muldiv (DisasContext *ctx, uint32_t opc, @@ -1168,7 +1168,7 @@ static void gen_muldiv (DisasContext *ctx, uint32_t opc,
1168 gen_op_multu(); 1168 gen_op_multu();
1169 opn = "multu"; 1169 opn = "multu";
1170 break; 1170 break;
1171 -#ifdef MIPS_HAS_MIPS64 1171 +#ifdef TARGET_MIPS64
1172 case OPC_DDIV: 1172 case OPC_DDIV:
1173 gen_op_ddiv(); 1173 gen_op_ddiv();
1174 opn = "ddiv"; 1174 opn = "ddiv";
@@ -1229,7 +1229,7 @@ static void gen_cl (DisasContext *ctx, uint32_t opc, @@ -1229,7 +1229,7 @@ static void gen_cl (DisasContext *ctx, uint32_t opc,
1229 gen_op_clz(); 1229 gen_op_clz();
1230 opn = "clz"; 1230 opn = "clz";
1231 break; 1231 break;
1232 -#ifdef MIPS_HAS_MIPS64 1232 +#ifdef TARGET_MIPS64
1233 case OPC_DCLO: 1233 case OPC_DCLO:
1234 gen_op_dclo(); 1234 gen_op_dclo();
1235 opn = "dclo"; 1235 opn = "dclo";
@@ -4538,7 +4538,7 @@ static void gen_movci (DisasContext *ctx, int rd, int rs, int cc, int tf) @@ -4538,7 +4538,7 @@ static void gen_movci (DisasContext *ctx, int rd, int rs, int cc, int tf)
4538 /* MIPS16 extension to MIPS32 */ 4538 /* MIPS16 extension to MIPS32 */
4539 /* SmartMIPS extension to MIPS32 */ 4539 /* SmartMIPS extension to MIPS32 */
4540 4540
4541 -#ifdef MIPS_HAS_MIPS64 4541 +#ifdef TARGET_MIPS64
4542 /* Coprocessor 3 (FPU) */ 4542 /* Coprocessor 3 (FPU) */
4543 4543
4544 /* MDMX extension to MIPS64 */ 4544 /* MDMX extension to MIPS64 */
@@ -4643,7 +4643,7 @@ static void decode_opc (CPUState *env, DisasContext *ctx) @@ -4643,7 +4643,7 @@ static void decode_opc (CPUState *env, DisasContext *ctx)
4643 } 4643 }
4644 break; 4644 break;
4645 4645
4646 -#ifdef MIPS_HAS_MIPS64 4646 +#ifdef TARGET_MIPS64
4647 /* MIPS64 specific opcodes */ 4647 /* MIPS64 specific opcodes */
4648 case OPC_DSLL: 4648 case OPC_DSLL:
4649 case OPC_DSRL ... OPC_DSRA: 4649 case OPC_DSRL ... OPC_DSRA:
@@ -4690,7 +4690,7 @@ static void decode_opc (CPUState *env, DisasContext *ctx) @@ -4690,7 +4690,7 @@ static void decode_opc (CPUState *env, DisasContext *ctx)
4690 } 4690 }
4691 /* Treat as a noop */ 4691 /* Treat as a noop */
4692 break; 4692 break;
4693 -#ifdef MIPS_HAS_MIPS64 4693 +#ifdef TARGET_MIPS64
4694 case OPC_DCLZ ... OPC_DCLO: 4694 case OPC_DCLZ ... OPC_DCLO:
4695 gen_cl(ctx, op1, rd, rs); 4695 gen_cl(ctx, op1, rd, rs);
4696 break; 4696 break;
@@ -4757,7 +4757,7 @@ static void decode_opc (CPUState *env, DisasContext *ctx) @@ -4757,7 +4757,7 @@ static void decode_opc (CPUState *env, DisasContext *ctx)
4757 } 4757 }
4758 GEN_STORE_TN_REG(rt, T0); 4758 GEN_STORE_TN_REG(rt, T0);
4759 break; 4759 break;
4760 -#ifdef MIPS_HAS_MIPS64 4760 +#ifdef TARGET_MIPS64
4761 case OPC_DEXTM ... OPC_DEXT: 4761 case OPC_DEXTM ... OPC_DEXT:
4762 case OPC_DINSM ... OPC_DINS: 4762 case OPC_DINSM ... OPC_DINS:
4763 gen_bitops(ctx, op1, rt, rs, sa, rd); 4763 gen_bitops(ctx, op1, rt, rs, sa, rd);
@@ -4812,7 +4812,7 @@ static void decode_opc (CPUState *env, DisasContext *ctx) @@ -4812,7 +4812,7 @@ static void decode_opc (CPUState *env, DisasContext *ctx)
4812 switch (op1) { 4812 switch (op1) {
4813 case OPC_MFC0: 4813 case OPC_MFC0:
4814 case OPC_MTC0: 4814 case OPC_MTC0:
4815 -#ifdef MIPS_HAS_MIPS64 4815 +#ifdef TARGET_MIPS64
4816 case OPC_DMFC0: 4816 case OPC_DMFC0:
4817 case OPC_DMTC0: 4817 case OPC_DMTC0:
4818 #endif 4818 #endif
@@ -4898,7 +4898,7 @@ static void decode_opc (CPUState *env, DisasContext *ctx) @@ -4898,7 +4898,7 @@ static void decode_opc (CPUState *env, DisasContext *ctx)
4898 case OPC_CFC1: 4898 case OPC_CFC1:
4899 case OPC_MTC1: 4899 case OPC_MTC1:
4900 case OPC_CTC1: 4900 case OPC_CTC1:
4901 -#ifdef MIPS_HAS_MIPS64 4901 +#ifdef TARGET_MIPS64
4902 case OPC_DMFC1: 4902 case OPC_DMFC1:
4903 case OPC_DMTC1: 4903 case OPC_DMTC1:
4904 #endif 4904 #endif
@@ -4948,7 +4948,7 @@ static void decode_opc (CPUState *env, DisasContext *ctx) @@ -4948,7 +4948,7 @@ static void decode_opc (CPUState *env, DisasContext *ctx)
4948 } 4948 }
4949 break; 4949 break;
4950 4950
4951 -#ifdef MIPS_HAS_MIPS64 4951 +#ifdef TARGET_MIPS64
4952 /* MIPS64 opcodes */ 4952 /* MIPS64 opcodes */
4953 case OPC_LWU: 4953 case OPC_LWU:
4954 case OPC_LDL ... OPC_LDR: 4954 case OPC_LDL ... OPC_LDR:
@@ -5197,7 +5197,7 @@ void dump_fpu (CPUState *env) @@ -5197,7 +5197,7 @@ void dump_fpu (CPUState *env)
5197 } 5197 }
5198 } 5198 }
5199 5199
5200 -#if defined(MIPS_HAS_MIPS64) && defined(MIPS_DEBUG_SIGN_EXTENSIONS) 5200 +#if defined(TARGET_MIPS64) && defined(MIPS_DEBUG_SIGN_EXTENSIONS)
5201 /* Debug help: The architecture requires 32bit code to maintain proper 5201 /* Debug help: The architecture requires 32bit code to maintain proper
5202 sign-extened values on 64bit machines. */ 5202 sign-extened values on 64bit machines. */
5203 5203
@@ -5255,7 +5255,7 @@ void cpu_dump_state (CPUState *env, FILE *f, @@ -5255,7 +5255,7 @@ void cpu_dump_state (CPUState *env, FILE *f,
5255 env->CP0_Config0, env->CP0_Config1, env->CP0_LLAddr); 5255 env->CP0_Config0, env->CP0_Config1, env->CP0_LLAddr);
5256 if (c0_status & (1 << CP0St_CU1)) 5256 if (c0_status & (1 << CP0St_CU1))
5257 fpu_dump_state(env, f, cpu_fprintf, flags); 5257 fpu_dump_state(env, f, cpu_fprintf, flags);
5258 -#if defined(MIPS_HAS_MIPS64) && defined(MIPS_DEBUG_SIGN_EXTENSIONS) 5258 +#if defined(TARGET_MIPS64) && defined(MIPS_DEBUG_SIGN_EXTENSIONS)
5259 cpu_mips_check_sign_extensions(env, f, cpu_fprintf, flags); 5259 cpu_mips_check_sign_extensions(env, f, cpu_fprintf, flags);
5260 #endif 5260 #endif
5261 } 5261 }
target-mips/translate_init.c
@@ -74,7 +74,7 @@ struct mips_def_t { @@ -74,7 +74,7 @@ struct mips_def_t {
74 /* MIPS CPU definitions */ 74 /* MIPS CPU definitions */
75 static mips_def_t mips_defs[] = 75 static mips_def_t mips_defs[] =
76 { 76 {
77 -#ifndef MIPS_HAS_MIPS64 77 +#ifndef TARGET_MIPS64
78 { 78 {
79 .name = "4Kc", 79 .name = "4Kc",
80 .CP0_PRid = 0x00018000, 80 .CP0_PRid = 0x00018000,