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

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

revision 26 by dpavlin, Mon Oct 8 16:20:10 2007 UTC revision 28 by dpavlin, Mon Oct 8 16:20:26 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: memory_ppc.c,v 1.24 2006/06/24 21:47:23 debug Exp $   *  $Id: memory_ppc.c,v 1.25 2006/07/14 16:33:28 debug Exp $
29   *   *
30   *  Included from cpu_ppc.c.   *  Included from cpu_ppc.c.
31   */   */
# Line 107  int ppc_bat(struct cpu *cpu, uint64_t va Line 107  int ppc_bat(struct cpu *cpu, uint64_t va
107  static int get_pte_low(struct cpu *cpu, uint64_t pteg_select,  static int get_pte_low(struct cpu *cpu, uint64_t pteg_select,
108          uint32_t *lowp, uint32_t cmp)          uint32_t *lowp, uint32_t cmp)
109  {  {
110          unsigned char *d = memory_paddr_to_hostaddr(cpu->mem, pteg_select, 1)          unsigned char *d = memory_paddr_to_hostaddr(cpu->mem, pteg_select, 1);
             + (pteg_select & ((1 << BITS_PER_MEMBLOCK) - 1));  
111          int i;          int i;
112    
113          for (i=0; i<8; i++) {          for (i=0; i<8; i++) {

Legend:
Removed from v.26  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26