Re: [Qemu-devel] [PATCH 02/32] ppc: Provide basic raise_exception_* functions

2016-07-26 Thread Benjamin Herrenschmidt
On Wed, 2016-07-27 at 11:50 +1000, David Gibson wrote: >  > > +void raise_exception_err(CPUPPCState *env, uint32_t exception, > > + uint32_t error_code) > > +{ > > +raise_exception_err_ra(env, exception, error_code, 0); > > +} > > + > > +void raise_exception(CPUPPCState

Re: [Qemu-devel] [PATCH 02/32] ppc: Provide basic raise_exception_* functions

2016-07-26 Thread David Gibson
On Wed, Jul 27, 2016 at 08:20:56AM +1000, Benjamin Herrenschmidt wrote: > Instead of using the same helpers called from translate.c, let's have > a bunch of functions that take the various argument combinations, > especially the retaddr which will be needed in subsequent patches, > and leave the he

[Qemu-devel] [PATCH 02/32] ppc: Provide basic raise_exception_* functions

2016-07-26 Thread Benjamin Herrenschmidt
Instead of using the same helpers called from translate.c, let's have a bunch of functions that take the various argument combinations, especially the retaddr which will be needed in subsequent patches, and leave the helpers to be just that, helpers for translate.c We don't yet convert all users,