summaryrefslogtreecommitdiffstats
path: root/hw/nios2/boot.h
diff options
context:
space:
mode:
authorMarek Vasut2017-01-18 23:01:45 +0100
committerRichard Henderson2017-01-24 22:10:35 +0100
commitb78625648802a5a7eef5a5f848250a52503a81aa (patch)
tree406273fd7336214490cac84bd06b360d42647b45 /hw/nios2/boot.h
parentnios2: Add periodic timer emulation (diff)
downloadqemu-b78625648802a5a7eef5a5f848250a52503a81aa.tar.gz
qemu-b78625648802a5a7eef5a5f848250a52503a81aa.tar.xz
qemu-b78625648802a5a7eef5a5f848250a52503a81aa.zip
nios2: Add Altera 10M50 GHRD emulation
Add the Altera 10M50 Nios2 GHRD model. This allows emulating the 10M50 development kit with the Nios2 GHRD loaded in the FPGA. It is possible to boot Linux kernel and run userspace, thus far only from initrd as storage support is not yet implemented. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Chris Wulff <crwulff@gmail.com> Cc: Jeff Da Silva <jdasilva@altera.com> Cc: Ley Foon Tan <lftan@altera.com> Cc: Sandra Loosemore <sandra@codesourcery.com> Cc: Yves Vandervennet <yvanderv@altera.com> Reviewed-by: Alexander Graf <agraf@suse.de> Message-Id: <20170118220146.489-7-marex@denx.de> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'hw/nios2/boot.h')
-rw-r--r--hw/nios2/boot.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/hw/nios2/boot.h b/hw/nios2/boot.h
new file mode 100644
index 0000000000..3116753818
--- /dev/null
+++ b/hw/nios2/boot.h
@@ -0,0 +1,11 @@
+#ifndef NIOS2_BOOT_H
+#define NIOS2_BOOT_H
+
+#include "hw/hw.h"
+#include "cpu.h"
+
+void nios2_load_kernel(Nios2CPU *cpu, hwaddr ddr_base, uint32_t ramsize,
+ const char *initrd_filename, const char *dtb_filename,
+ void (*machine_cpu_reset)(Nios2CPU *));
+
+#endif /* NIOS2_BOOT_H */