Revision 6d42fb31
b/target-ppc/cpu.h | ||
---|---|---|
1929 | 1929 |
#if !defined(CONFIG_USER_ONLY) |
1930 | 1930 |
static inline int booke206_tlbe_id(CPUState *env, ppcemb_tlb_t *tlbe) |
1931 | 1931 |
{ |
1932 |
ulong tlbel = (ulong)tlbe;
|
|
1933 |
ulong tlbl = (ulong)env->tlb;
|
|
1932 |
uintptr_t tlbel = (uintptr_t)tlbe;
|
|
1933 |
uintptr_t tlbl = (uintptr_t)env->tlb;
|
|
1934 | 1934 |
|
1935 | 1935 |
return (tlbel - tlbl) / sizeof(env->tlb[0]); |
1936 | 1936 |
} |
Also available in: Unified diff