On Wed, 2016-07-27 at 12:04 +1000, David Gibson wrote: > On Wed, Jul 27, 2016 at 08:21:07AM +1000, Benjamin Herrenschmidt > wrote: > > Instead, pass GETPC() result to the corresponding helpers. This > > requires a bit of fiddling to get the PC (hopefully) right in > > the case where we generate a program check, though the hacks there > > are temporary, a subsequent patch will clean this all up by always > > having the nip already set to the right instruction when taking > > the fault. > > Where are cpu_ldub_data() and cpu_ldub_data_ra() defined? I assume > it's via macro somewhere, since I couldn't find it with a grep.
Yeah all that stuff is defined via macros in include/exec/cpu_ldst.h and cpu_ldst_template.h