On Sat, Feb 12, 2011 at 04:23:39PM +0100, Alexander Graf wrote: > On 12.02.2011, at 15:54, David Gibson wrote: [snip] > > +target_ulong helper_load_slb_esid (target_ulong rb) > > +{ > > + target_ulong rt; > > + > > + if (ppc_load_slb_esid(env, rb, &rt) < 0) { > > + helper_raise_exception_err(POWERPC_EXCP_PROGRAM, > > POWERPC_EXCP_INVAL); > > The spec doesn't say what to do in this case. Have you checked what > real hardware does?
Erm, I don't think I've checked this specific case, on this specific CPU. Generally I've found that invalid parameters to MMU management instructions results in invalid instruction program checks, so I assumed that's what would happen in this case. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson