Skip to contentSkip to conversation

Target support for qemu -M mips

PATCH Superseded Vlad Lungu 1 participant 1 message Oct 4, 2007

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Vlad Lungu

author
#0 lore raw

PATCH 1/1 Target support for qemu -M mips

With serial, NE2000, IDE support. Tested in big-endian mode. Memory size hard-coded to 128M for now, so don't play with the -m option.

---
 MAKEALL                         |    1 +
 Makefile                        |    6 ++
 board/qemu-mips/Makefile        |   45 ++++++++++
 board/qemu-mips/README          |   11 +++
 board/qemu-mips/config.mk       |   11 +++
 board/qemu-mips/flash.c         |   43 ++++++++++
 board/qemu-mips/lowlevel_init.S |   41 +++++++++
 board/qemu-mips/qemu-mips.c     |   83 +++++++++++++++++++
 board/qemu-mips/u-boot.lds      |   69 ++++++++++++++++
 include/configs/qemu-mips.h     |  172 +++++++++++++++++++++++++++++++++++++++
 10 files changed, 482 insertions(+), 0 deletions(-)
 create mode 100644 board/qemu-mips/Makefile
 create mode 100644 board/qemu-mips/README
 create mode 100644 board/qemu-mips/config.mk
 create mode 100644 board/qemu-mips/flash.c
 create mode 100644 board/qemu-mips/lowlevel_init.S
 create mode 100644 board/qemu-mips/qemu-mips.c
 create mode 100644 board/qemu-mips/u-boot.lds
 create mode 100644 include/configs/qemu-mips.h
MAKEALL +1 -0
index 2597d1f..75c85b3 100755
@@ -521,6 +521,7 @@ LIST_arm="		\
 
 LIST_mips4kc="		\
 	incaip		\
+	qemu_mips	\
 "
 
 LIST_mips5kc="		\
Makefile +6 -0
index 85885b1..8f650d2 100644
@@ -2444,6 +2444,12 @@ pb1000_config		:	unconfig
 	@echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
 	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
 
+qemu_mips_config		:	unconfig
+	@mkdir -p $(obj)include
+	@ >$(obj)include/config.h
+	@echo "#define CONFIG_QEMU_MIPS 1" >>$(obj)include/config.h
+	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
+
 #########################################################################
 ## MIPS64 5Kc
 #########################################################################
board/qemu-mips/Makefile new file +45 -0

45 lines not on this page · raw message

board/qemu-mips/README new file +11 -0
new file mode 100644
index 0000000..39570b1
@@ -0,0 +1,11 @@
+By Vlad Lungu vlad at comsys.ro 2007-Oct-01
+----------------------------------------
+Qemu is a full system emulator. See
+
+http://fabrice.bellard.free.fr/qemu
+
+Limitations & comments
+----------------------
+Supports the "-m mips" configuration of qemu: serial,NE2000,IDE.
+Support is big endian only for now (or at least this is what I tested).
+Derived from au1x00 with a lot of things cut out.
board/qemu-mips/config.mk new file +11 -0
new file mode 100644
index 0000000..61269ce
@@ -0,0 +1,11 @@
+
+#
+# Qemu -M mips system emulator
+# See http://fabrice.bellard.free.fr/qemu
+#
+
+# ROM version
+TEXT_BASE = 0xbfc00000
+
+# RAM version
+#TEXT_BASE = 0x80001000
board/qemu-mips/flash.c new file +43 -0

43 lines not on this page · raw message

board/qemu-mips/lowlevel_init.S new file +41 -0

41 lines not on this page · raw message

board/qemu-mips/qemu-mips.c new file +83 -0

83 lines not on this page · raw message

board/qemu-mips/u-boot.lds new file +69 -0

69 lines not on this page · raw message

include/configs/qemu-mips.h new file +172 -0

172 lines not on this page · raw message

Signature · 1 line
1.5.2.2