/[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 32 by dpavlin, Mon Oct 8 16:20:58 2007 UTC revision 36 by dpavlin, Mon Oct 8 16:21:34 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   *  Copyright (C) 2006  Anders Gavare.  All rights reserved.   *  Copyright (C) 2006-2007  Anders Gavare.  All rights reserved.
3   *   *
4   *  Redistribution and use in source and binary forms, with or without   *  Redistribution and use in source and binary forms, with or without
5   *  modification, are permitted provided that the following conditions are met:   *  modification, are permitted provided that the following conditions are met:
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: memory_sparc.c,v 1.1 2006/09/04 15:35:55 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.32  
changed lines
  Added in v.36

  ViewVC Help
Powered by ViewVC 1.1.26