/[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 32 by dpavlin, Mon Oct 8 16:20:58 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   *  Copyright (C) 2005  Anders Gavare.  All rights reserved.   *  Copyright (C) 2005-2006  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_ppc.c,v 1.24 2006/06/24 21:47:23 debug Exp $   *  $Id: memory_ppc.c,v 1.26 2006/09/30 05:57:08 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++) {
# Line 214  static int ppc_vtp32(struct cpu *cpu, ui Line 213  static int ppc_vtp32(struct cpu *cpu, ui
213  /*  /*
214   *  ppc_translate_v2p():   *  ppc_translate_v2p():
215   *   *
216   *  Don't call this function is userland_emul is non-NULL, or cpu is NULL.   *  Don't call this function if userland_emul is non-NULL, or cpu is NULL.
217   *   *
218   *  Return values:   *  Return values:
219   *      0  Failure   *      0  Failure

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

  ViewVC Help
Powered by ViewVC 1.1.26