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. Otherwise Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> thanks -- PMM