On Thu, Feb 17, 2022 at 06:04:32PM +0000, Peter Maydell wrote: > On Thu, 10 Feb 2022 at 13:13, Stafford Horne <sho...@gmail.com> wrote: > > > > The initrd passed via the command line is loaded into memory. It's > > location and size is then added to the device tree so the kernel knows > > where to find it. > > > > Signed-off-by: Stafford Horne <sho...@gmail.com> > > --- > > hw/openrisc/openrisc_sim.c | 32 +++++++++++++++++++++++++++++++- > > 1 file changed, 31 insertions(+), 1 deletion(-) > > > > diff --git a/hw/openrisc/openrisc_sim.c b/hw/openrisc/openrisc_sim.c > > index d7c26af82c..5354797e20 100644 > > --- a/hw/openrisc/openrisc_sim.c > > +++ b/hw/openrisc/openrisc_sim.c > > @@ -187,6 +187,32 @@ static hwaddr openrisc_load_kernel(ram_addr_t ram_size, > > return 0; > > } > > > > +static hwaddr openrisc_load_initrd(Or1ksimState *s, const char *filename, > > + hwaddr load_start, uint64_t mem_size) > > Indentation here is off.
Ah, I was going off the indentation already in the file. I will fix this. i.e. should be: static hwaddr openrisc_load_initrd(Or1ksimState *s, const char *filename, hwaddr load_start, uint64_t mem_size) That's why its like that everywhere. I might as well add another patch to fix up indentation. > > Otherwise > Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> Thanks!