Re: [Qemu-devel] [PATCH v5 12/23] RISC-V HTIF Console

2018-02-09 Thread Richard Henderson
On 02/09/2018 01:08 AM, Michael Clark wrote: > https://github.com/michaeljclark/riscv-qemu/commit/17272f5c66adf8532f196d660d2a593c2178ac95 > >  hw/core/loader.c     |   18 -- >  include/hw/elf_ops.h |   28 >  include/hw/loader.h  |   17

Re: [Qemu-devel] [PATCH v5 12/23] RISC-V HTIF Console

2018-02-09 Thread Michael Clark
https://github.com/michaeljclark/riscv-qemu/commit/17272f5c66adf8532f196d660d2a593c2178ac95 hw/core/loader.c | 18 -- include/hw/elf_ops.h | 28 include/hw/loader.h | 17 - 3 files changed, 48 insertions(+), 15 deletions(-)

Re: [Qemu-devel] [PATCH v5 12/23] RISC-V HTIF Console

2018-02-09 Thread Michael Clark
On Fri, Feb 9, 2018 at 8:33 PM, Michael Clark wrote: > > > On Fri, Feb 9, 2018 at 5:35 AM, Richard Henderson < > richard.hender...@linaro.org> wrote: > >> On 02/07/2018 05:28 PM, Michael Clark wrote: >> > +++ b/hw/riscv/riscv_elf.c >> > @@ -0,0 +1,244 @@ >> > +/* >> > + * elf.c

Re: [Qemu-devel] [PATCH v5 12/23] RISC-V HTIF Console

2018-02-08 Thread Michael Clark
On Fri, Feb 9, 2018 at 5:35 AM, Richard Henderson < richard.hender...@linaro.org> wrote: > On 02/07/2018 05:28 PM, Michael Clark wrote: > > +++ b/hw/riscv/riscv_elf.c > > @@ -0,0 +1,244 @@ > > +/* > > + * elf.c - A simple package for manipulating symbol tables in elf > binaries. > > + * > > + *

Re: [Qemu-devel] [PATCH v5 12/23] RISC-V HTIF Console

2018-02-08 Thread Richard Henderson
On 02/07/2018 05:28 PM, Michael Clark wrote: > +++ b/hw/riscv/riscv_elf.c > @@ -0,0 +1,244 @@ > +/* > + * elf.c - A simple package for manipulating symbol tables in elf binaries. > + * > + * Taken from > + * https://www.cs.cmu.edu/afs/cs.cmu.edu/academic/class/15213-f03/www/ > + * ftrace/elf.c > +

[Qemu-devel] [PATCH v5 12/23] RISC-V HTIF Console

2018-02-07 Thread Michael Clark
HTIF (Host Target Interface) provides console emulation for QEMU. HTIF allows identical copies of BBL (Berkeley Boot Loader) and linux to run on both Spike and QEMU. BBL provides HTIF console access via the SBI (Supervisor Binary Interface) and the linux kernel SBI console. The HTIF interface