diff --git a/src/target/Makefile.am b/src/target/Makefile.am index 5b6916dd8..745186d14 100644 --- a/src/target/Makefile.am +++ b/src/target/Makefile.am @@ -36,6 +36,7 @@ libtarget_la_SOURCES = \ $(MIPS32_SRC) \ $(NDS32_SRC) \ $(INTEL_IA32_SRC) \ + $(RISCV_SRC) \ avrt.c \ dsp563xx.c \ dsp563xx_once.c \ @@ -134,6 +135,9 @@ INTEL_IA32_SRC = \ lakemont.c \ x86_32_common.c +RISCV_SRC = \ + riscv.c + noinst_HEADERS = \ algorithm.h \ arm.h \ diff --git a/src/target/riscv.c b/src/target/riscv.c new file mode 100644 index 000000000..bd34182d1 --- /dev/null +++ b/src/target/riscv.c @@ -0,0 +1,17 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "target.h" +#include "target_type.h" + +static int riscv_poll(struct target *target) +{ + return 0; +} + +struct target_type riscv_target = { + .name = "riscv", + + .poll = riscv_poll, +};