RISC-V Build Infrastructure
commit25fa194b7b11901561532e435beb83d046899f7a
authorMichael Clark <mjc@sifive.com>
Fri, 2 Mar 2018 12:32:59 +0000 (3 01:32 +1300)
committerMichael Clark <mjc@sifive.com>
Tue, 6 Mar 2018 19:30:28 +0000 (7 08:30 +1300)
tree361c143f38183b884bcac16e30d69791c3c40492
parenta7240d1e4aac4cd4542d68f3cc722939550da6af
RISC-V Build Infrastructure

This adds RISC-V into the build system enabling the following targets:

- riscv32-softmmu
- riscv64-softmmu
- riscv32-linux-user
- riscv64-linux-user

This adds defaults configs for RISC-V, enables the build for the RISC-V
CPU core, hardware, and Linux User Emulation. The 'qemu-binfmt-conf.sh'
script is updated to add the RISC-V ELF magic.

Expected checkpatch errors for consistency reasons:

ERROR: line over 90 characters
FILE: scripts/qemu-binfmt-conf.sh

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Sagar Karandikar <sagark@eecs.berkeley.edu>
Signed-off-by: Michael Clark <mjc@sifive.com>
12 files changed:
arch_init.c
configure
cpus.c
default-configs/riscv32-linux-user.mak [new file with mode: 0644]
default-configs/riscv32-softmmu.mak [new file with mode: 0644]
default-configs/riscv64-linux-user.mak [new file with mode: 0644]
default-configs/riscv64-softmmu.mak [new file with mode: 0644]
hw/riscv/Makefile.objs [new file with mode: 0644]
include/sysemu/arch_init.h
qapi/misc.json
scripts/qemu-binfmt-conf.sh
target/riscv/Makefile.objs [new file with mode: 0644]