Revision 7dbe11ac target-ppc/op_helper.c
b/target-ppc/op_helper.c | ||
---|---|---|
2363 | 2363 |
way, is_code, CMP, RPN); |
2364 | 2364 |
} |
2365 | 2365 |
|
2366 |
void do_load_74xx_tlb (int is_code) |
|
2367 |
{ |
|
2368 |
target_ulong RPN, CMP, EPN; |
|
2369 |
int way; |
|
2370 |
|
|
2371 |
RPN = env->spr[SPR_PTELO]; |
|
2372 |
CMP = env->spr[SPR_PTEHI]; |
|
2373 |
EPN = env->spr[SPR_TLBMISS] & ~0x3; |
|
2374 |
way = env->spr[SPR_TLBMISS] & 0x3; |
|
2375 |
#if defined (DEBUG_SOFTWARE_TLB) |
|
2376 |
if (loglevel != 0) { |
|
2377 |
fprintf(logfile, "%s: EPN %08lx %08lx PTE0 %08lx PTE1 %08lx way %d\n", |
|
2378 |
__func__, (unsigned long)T0, (unsigned long)EPN, |
|
2379 |
(unsigned long)CMP, (unsigned long)RPN, way); |
|
2380 |
} |
|
2381 |
#endif |
|
2382 |
/* Store this TLB */ |
|
2383 |
ppc6xx_tlb_store(env, (uint32_t)(T0 & TARGET_PAGE_MASK), |
|
2384 |
way, is_code, CMP, RPN); |
|
2385 |
} |
|
2386 |
|
|
2366 | 2387 |
static target_ulong booke_tlb_to_page_size (int size) |
2367 | 2388 |
{ |
2368 | 2389 |
return 1024 << (2 * size); |
Also available in: Unified diff