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

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

revision 39 by dpavlin, Mon Oct 8 16:21:17 2007 UTC revision 40 by dpavlin, Mon Oct 8 16:22:11 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: memory.c,v 1.201 2006/12/30 13:30:52 debug Exp $   *  $Id: memory.c,v 1.202 2007/04/28 09:19:51 debug Exp $
29   *   *
30   *  Functions for handling the memory of an emulated machine.   *  Functions for handling the memory of an emulated machine.
31   */   */
# Line 601  uint64_t memory_checksum(struct memory * Line 601  uint64_t memory_checksum(struct memory *
601  {  {
602          uint64_t internal_state = 0x80624185376feff2ULL;          uint64_t internal_state = 0x80624185376feff2ULL;
603          uint64_t checksum = 0xcb9a87d5c010072cULL;          uint64_t checksum = 0xcb9a87d5c010072cULL;
604          const int n_entries = (1 << BITS_PER_PAGETABLE) - 1;          const size_t n_entries = (1 << BITS_PER_PAGETABLE) - 1;
605          const size_t len = (1 << BITS_PER_MEMBLOCK) / sizeof(uint64_t);          const size_t len = (1 << BITS_PER_MEMBLOCK) / sizeof(uint64_t);
606          size_t entry, i;          size_t entry, i;
607    

Legend:
Removed from v.39  
changed lines
  Added in v.40

  ViewVC Help
Powered by ViewVC 1.1.26