Alexander Graf <ag...@suse.de> writes: > On 26.08.2013, at 08:46, Aneesh Kumar K.V wrote: > >> Alexander Graf <ag...@suse.de> writes: >>
.... >>> >>>> + */ >>>> + memset(env->slb, 0, 64 * sizeof(ppc_slb_t)); >>> >>> Can't we use ARRAY_SIZE here and below? >> >> I was thinking we want to be explicit there saying we are zeroing out all >> the 64 entries. I could do sizeof(env->slb). > > Yup, that works too. In the loop below s/64/ARRAY_SIZE(env->slb)/ should work > too I think. > Updated with the above change. -aneesh