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 |
*/ |
*/ |
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 |
|
|