svn commit: r299073 - head/sys/arm/qemu

Bjoern A. Zeeb bz at FreeBSD.org
Wed May 4 16:24:13 UTC 2016


Author: bz
Date: Wed May  4 16:24:12 2016
New Revision: 299073
URL: https://svnweb.freebsd.org/changeset/base/299073

Log:
  While gem5 is not qemu, we treat it as "simulators" or "virtual environments".
  Add the needed hardcoded gem5 attachments for the UART there, re-using all
  the other bits.
  
  In collaboration with:	andrew
  Sponsored by:		DARPA/AFRL
  Reviewed by:		andrew
  MFC after:		2 weeks
  Differential Revision:	https://reviews.freebsd.org/D6204

Modified:
  head/sys/arm/qemu/virt_machdep.c

Modified: head/sys/arm/qemu/virt_machdep.c
==============================================================================
--- head/sys/arm/qemu/virt_machdep.c	Wed May  4 16:15:39 2016	(r299072)
+++ head/sys/arm/qemu/virt_machdep.c	Wed May  4 16:24:12 2016	(r299073)
@@ -97,3 +97,20 @@ static platform_method_t virt_methods[] 
 };
 
 FDT_PLATFORM_DEF(virt, "virt", 0, "linux,dummy-virt", 1);
+
+static int
+gem5_devmap_init(platform_t plat)
+{
+
+	devmap_add_entry(0x1c090000, 0x100000); /* Uart */
+	return (0);
+}
+
+static platform_method_t gem5_methods[] = {
+	PLATFORMMETHOD(platform_devmap_init,	gem5_devmap_init),
+	PLATFORMMETHOD(platform_lastaddr,	virt_lastaddr),
+
+	PLATFORMMETHOD_END,
+};
+
+FDT_PLATFORM_DEF(gem5, "gem5", 0, "arm,vexpress", 1);


More information about the svn-src-head mailing list