25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: bintrans.c,v 1.1 2005/08/29 14:36:41 debug Exp $ |
* $Id: bintrans.c,v 1.4 2005/12/26 12:32:10 debug Exp $ |
29 |
* |
* |
30 |
* Dynamic binary translation. |
* Dynamic binary translation. |
31 |
* |
* |
714 |
/* tlbr: */ |
/* tlbr: */ |
715 |
translated = try_to_translate = bintrans_write_instruction__tlb_rfe_etc(&ca, CALL_TLBR); |
translated = try_to_translate = bintrans_write_instruction__tlb_rfe_etc(&ca, CALL_TLBR); |
716 |
n_translated += translated; |
n_translated += translated; |
717 |
} else if (instr[2] == 0 && instr[1] == 0 && (instr[0] == 0x21 || instr[0] == 0x22)) { |
} else if (instr[2] == 0 && instr[1] == 0 && (instr[0] == 0x20 || instr[0] == 0x21 || instr[0] == 0x22)) { |
718 |
/* standby and suspend on VR41xx etc ==> NOP */ |
/* idle, standby and suspend on VR41xx etc ==> NOP */ |
719 |
translated = try_to_translate = bintrans_write_instruction__addu_etc(cpu->mem, &ca, 0, 0, 0, 0, SPECIAL_SLL); |
translated = try_to_translate = bintrans_write_instruction__addu_etc(cpu->mem, &ca, 0, 0, 0, 0, SPECIAL_SLL); |
720 |
n_translated += translated; |
n_translated += translated; |
721 |
} else { |
} else { |
1101 |
#if 1 |
#if 1 |
1102 |
for (i=0; i<1048576; i++) { |
for (i=0; i<1048576; i++) { |
1103 |
unsigned char *ptr = NULL; |
unsigned char *ptr = NULL; |
1104 |
if (i < (0xa0000000ULL >> 12) || |
if ((unsigned int)i < (0xa0000000ULL >> 12) || |
1105 |
i >= (0xc0000000ULL >> 12)) |
(unsigned int)i >= (0xc0000000ULL >> 12)) |
1106 |
ptr = cpu->cd.mips. |
ptr = cpu->cd.mips. |
1107 |
vaddr_to_hostaddr_r2k3k_dcachetable |
vaddr_to_hostaddr_r2k3k_dcachetable |
1108 |
->haddr_entry[(i & 1023) * 2]; |
->haddr_entry[(i & 1023) * 2]; |
1208 |
} |
} |
1209 |
} |
} |
1210 |
|
|
1211 |
debug("bintrans: "BACKEND_NAME", %i MB translation cache at %p\n", |
debug("OLD bintrans: "BACKEND_NAME", %i MB translation cache at %p\n", |
1212 |
(int)(s/1048576), mem->translation_code_chunk_space); |
(int)(s/1048576), mem->translation_code_chunk_space); |
1213 |
|
|
1214 |
/* |
/* |