Re: [PATCH v2 2/2] hw/riscv: sifive_u: Provide a reliable way for bootloader to detect whether it is running in QEMU

2020-07-13 Thread Alistair Francis
On Sun, Jul 12, 2020 at 6:16 PM Bin Meng wrote: > > Hi Alistair, > > On Sun, Jul 12, 2020 at 12:04 AM Alistair Francis > wrote: > > > > On Thu, Jul 9, 2020 at 5:50 PM Bin Meng wrote: > > > > > > Hi Palmer, > > > > > > On Fri, Jul 10, 2020 at 8:45 AM Palmer Dabbelt > > > wrote: > > > > > > >

Re: [PATCH v2 2/2] hw/riscv: sifive_u: Provide a reliable way for bootloader to detect whether it is running in QEMU

2020-07-12 Thread Bin Meng
Hi Alistair, On Sun, Jul 12, 2020 at 12:04 AM Alistair Francis wrote: > > On Thu, Jul 9, 2020 at 5:50 PM Bin Meng wrote: > > > > Hi Palmer, > > > > On Fri, Jul 10, 2020 at 8:45 AM Palmer Dabbelt > > wrote: > > > > > > On Thu, 09 Jul 2020 15:09:18 PDT (-0700), alistai...@gmail.com wrote: > > >

Re: [PATCH v2 2/2] hw/riscv: sifive_u: Provide a reliable way for bootloader to detect whether it is running in QEMU

2020-07-12 Thread Bin Meng
Hi Alistair, On Sun, Jul 12, 2020 at 12:03 AM Alistair Francis wrote: > > On Thu, Jul 9, 2020 at 5:48 PM Bin Meng wrote: > > > > Hi Alistair, > > > > On Fri, Jul 10, 2020 at 6:19 AM Alistair Francis > > wrote: > > > > > > On Thu, Jul 9, 2020 at 3:07 AM Bin Meng wrote: > > > > > > > > From:

Re: [PATCH v2 2/2] hw/riscv: sifive_u: Provide a reliable way for bootloader to detect whether it is running in QEMU

2020-07-11 Thread Alistair Francis
On Thu, Jul 9, 2020 at 5:50 PM Bin Meng wrote: > > Hi Palmer, > > On Fri, Jul 10, 2020 at 8:45 AM Palmer Dabbelt > wrote: > > > > On Thu, 09 Jul 2020 15:09:18 PDT (-0700), alistai...@gmail.com wrote: > > > On Thu, Jul 9, 2020 at 3:07 AM Bin Meng wrote: > > >> > > >> From: Bin Meng > > >> > >

Re: [PATCH v2 2/2] hw/riscv: sifive_u: Provide a reliable way for bootloader to detect whether it is running in QEMU

2020-07-11 Thread Alistair Francis
On Thu, Jul 9, 2020 at 5:48 PM Bin Meng wrote: > > Hi Alistair, > > On Fri, Jul 10, 2020 at 6:19 AM Alistair Francis wrote: > > > > On Thu, Jul 9, 2020 at 3:07 AM Bin Meng wrote: > > > > > > From: Bin Meng > > > > > > The reset vector codes are subject to change, e.g.: with recent > > >

Re: [PATCH v2 2/2] hw/riscv: sifive_u: Provide a reliable way for bootloader to detect whether it is running in QEMU

2020-07-09 Thread Bin Meng
Hi Palmer, On Fri, Jul 10, 2020 at 8:45 AM Palmer Dabbelt wrote: > > On Thu, 09 Jul 2020 15:09:18 PDT (-0700), alistai...@gmail.com wrote: > > On Thu, Jul 9, 2020 at 3:07 AM Bin Meng wrote: > >> > >> From: Bin Meng > >> > >> The reset vector codes are subject to change, e.g.: with recent > >>

Re: [PATCH v2 2/2] hw/riscv: sifive_u: Provide a reliable way for bootloader to detect whether it is running in QEMU

2020-07-09 Thread Bin Meng
Hi Alistair, On Fri, Jul 10, 2020 at 6:19 AM Alistair Francis wrote: > > On Thu, Jul 9, 2020 at 3:07 AM Bin Meng wrote: > > > > From: Bin Meng > > > > The reset vector codes are subject to change, e.g.: with recent > > fw_dynamic type image support, it breaks oreboot again. > > This is a

Re: [PATCH v2 2/2] hw/riscv: sifive_u: Provide a reliable way for bootloader to detect whether it is running in QEMU

2020-07-09 Thread Palmer Dabbelt
On Thu, 09 Jul 2020 15:09:18 PDT (-0700), alistai...@gmail.com wrote: On Thu, Jul 9, 2020 at 3:07 AM Bin Meng wrote: From: Bin Meng The reset vector codes are subject to change, e.g.: with recent fw_dynamic type image support, it breaks oreboot again. This is a recurring problem, I have

Re: [PATCH v2 2/2] hw/riscv: sifive_u: Provide a reliable way for bootloader to detect whether it is running in QEMU

2020-07-09 Thread Alistair Francis
On Thu, Jul 9, 2020 at 3:07 AM Bin Meng wrote: > > From: Bin Meng > > The reset vector codes are subject to change, e.g.: with recent > fw_dynamic type image support, it breaks oreboot again. This is a recurring problem, I have another patch for Oreboot to fix the latest breakage. > > Add a

[PATCH v2 2/2] hw/riscv: sifive_u: Provide a reliable way for bootloader to detect whether it is running in QEMU

2020-07-09 Thread Bin Meng
From: Bin Meng The reset vector codes are subject to change, e.g.: with recent fw_dynamic type image support, it breaks oreboot again. Add a subregion in the MROM, with the size of machine RAM stored, so that we can provide a reliable way for bootloader to detect whether it is running in QEMU.