/[gxemul]/trunk/src/cpus/bintrans.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/cpus/bintrans.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 21 by dpavlin, Mon Oct 8 16:18:51 2007 UTC revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC
# Line 25  Line 25 
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   *   *
# Line 714  cpu->cd.mips.pc_last_host_4k_page,(long Line 714  cpu->cd.mips.pc_last_host_4k_page,(long
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 {
# Line 1101  void old_bintrans_init_cpu(struct cpu *c Line 1101  void old_bintrans_init_cpu(struct cpu *c
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];
# Line 1208  void bintrans_init(struct machine *machi Line 1208  void bintrans_init(struct machine *machi
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          /*          /*

Legend:
Removed from v.21  
changed lines
  Added in v.22

  ViewVC Help
Powered by ViewVC 1.1.26