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

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

revision 35 by dpavlin, Mon Oct 8 16:21:17 2007 UTC revision 36 by dpavlin, Mon Oct 8 16:21:34 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: memory_sparc.c,v 1.2 2006/12/30 13:30:56 debug Exp $   *  $Id: memory_sparc.c,v 1.3 2007/03/16 15:17:55 debug Exp $
29   */   */
30    
31  #include <stdio.h>  #include <stdio.h>
# Line 52  int sparc_translate_v2p(struct cpu *cpu, Line 52  int sparc_translate_v2p(struct cpu *cpu,
52          if ((vaddr & 0xf0000000) == 0xf0000000)          if ((vaddr & 0xf0000000) == 0xf0000000)
53                  *return_paddr = vaddr & 0x07ffffff;                  *return_paddr = vaddr & 0x07ffffff;
54    
55    /*  FreeBSD/sun4v test hack:  */
56    if ((vaddr & 0xf0000000) == 0xc0000000)
57            *return_paddr = vaddr & 0x0fffffff;
58    
59          return 2;          return 2;
60  }  }
61    

Legend:
Removed from v.35  
changed lines
  Added in v.36

  ViewVC Help
Powered by ViewVC 1.1.26