Revision 046d6672 target-ppc/helper.c
b/target-ppc/helper.c | ||
---|---|---|
178 | 178 |
int ret = -1; /* No entry found */ |
179 | 179 |
|
180 | 180 |
for (i = 0; i < 8; i++) { |
181 |
pte0 = ldl_raw((void *)((uint32_t)phys_ram_base + base + (i * 8)));
|
|
182 |
pte1 = ldl_raw((void *)((uint32_t)phys_ram_base + base + (i * 8) + 4));
|
|
181 |
pte0 = ldl_raw(phys_ram_base + base + (i * 8));
|
|
182 |
pte1 = ldl_raw(phys_ram_base + base + (i * 8) + 4);
|
|
183 | 183 |
#if defined (DEBUG_MMU) |
184 | 184 |
if (loglevel > 0) { |
185 | 185 |
fprintf(logfile, "Load pte from 0x%08x => 0x%08x 0x%08x " |
... | ... | |
269 | 269 |
} |
270 | 270 |
} |
271 | 271 |
if (store) { |
272 |
stl_raw((void *)((uint32_t)phys_ram_base + base + (good * 8) + 4), |
|
273 |
keep); |
|
272 |
stl_raw(phys_ram_base + base + (good * 8) + 4, keep); |
|
274 | 273 |
} |
275 | 274 |
} |
276 | 275 |
|
Also available in: Unified diff