/[gxemul]/trunk/src/cpus/memory_sh.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/memory_sh.c

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

revision 41 by dpavlin, Mon Oct 8 16:22:11 2007 UTC revision 42 by dpavlin, Mon Oct 8 16:22:32 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: memory_sh.c,v 1.19 2007/04/16 15:11:31 debug Exp $   *  $Id: memory_sh.c,v 1.23 2007/06/05 06:41:30 debug Exp $
29   */   */
30    
31  #include <stdio.h>  #include <stdio.h>
# Line 153  static int translate_via_mmu(struct cpu Line 153  static int translate_via_mmu(struct cpu
153          if (flags & FLAG_INSTR) {          if (flags & FLAG_INSTR) {
154                  /*                  /*
155                   *  Instruction access:                   *  Instruction access:
156                   *                   */
157    #if 0
158                    /*  NOTE: Emulating the ITLB as exact as this is not
159                            necessary... so I'm disabling it for now.  */
160                    /*
161                   *  If a matching entry wasn't found in the ITLB, but in the                   *  If a matching entry wasn't found in the ITLB, but in the
162                   *  UTLB, then copy it to a random place in the ITLB.                   *  UTLB, then copy it to a random place in the ITLB.
163                   */                   */
# Line 171  static int translate_via_mmu(struct cpu Line 175  static int translate_via_mmu(struct cpu
175                          cpu->cd.sh.itlb_hi[r] = cpu->cd.sh.utlb_hi[i];                          cpu->cd.sh.itlb_hi[r] = cpu->cd.sh.utlb_hi[i];
176                          cpu->cd.sh.itlb_lo[r] = cpu->cd.sh.utlb_lo[i];                          cpu->cd.sh.itlb_lo[r] = cpu->cd.sh.utlb_lo[i];
177                  }                  }
178    #endif
179    
180                  /*  Permission checks:  */                  /*  Permission checks:  */
181                  if (cpu->cd.sh.sr & SH_SR_MD)                  if (cpu->cd.sh.sr & SH_SR_MD)
# Line 305  int sh_translate_v2p(struct cpu *cpu, ui Line 310  int sh_translate_v2p(struct cpu *cpu, ui
310          }          }
311    
312          /*  TODO  */          /*  TODO  */
313          fatal("Unimplemented SH vaddr 0x%08"PRIx32"\n", (uint32_t)vaddr);  
314          exit(1);          /*  The ugly 'if' is just here to fool Compaq CC.  */
315            if (!(flags & FLAG_NOEXCEPTIONS)) {
316                    fatal("Unimplemented SH vaddr 0x%08"PRIx32"\n", vaddr);
317                    exit(1);
318            }
319    
320          return 0;          return 0;
321  }  }

Legend:
Removed from v.41  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.26