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
This commit is contained in:
Bjoern A. Zeeb 2016-05-04 16:24:12 +00:00
parent ab257e40e6
commit e94f204a32
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299073

View File

@ -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);