Re: [Qemu-devel] [PATCH v3 1/1] riscv: Ensure the kernel start address is correctly cast

2019-01-24 Thread Philippe Mathieu-Daudé
On 1/24/19 6:37 PM, Alistair Francis wrote: > Cast the kernel start address to the target bit length. > > This ensures that we calculate the initrd offset to a valid address for > the architecture. > > Steps to reproduce the original problem (reported by Alex): > Build U-Boot for the virt machi

[Qemu-devel] [PATCH v3 1/1] riscv: Ensure the kernel start address is correctly cast

2019-01-24 Thread Alistair Francis
Cast the kernel start address to the target bit length. This ensures that we calculate the initrd offset to a valid address for the architecture. Steps to reproduce the original problem (reported by Alex): Build U-Boot for the virt machine for riscv32. Then run it with $ qemu-system-riscv3