dev: Make the EtherDevice class inherit EtherObject.
authorGabe Black <gabeblack@google.com>
Thu, 7 Mar 2019 01:38:23 +0000 (17:38 -0800)
committerGabe Black <gabeblack@google.com>
Fri, 15 Mar 2019 18:13:46 +0000 (18:13 +0000)
commitb482cff6c3330d1c43d5c8d18d25731f552f02ee
tree92c2a6059bcfec85e726a18b806b358723c8f70e
parentf5ba0d66459c1c035d4613376d1d39af08e483de
dev: Make the EtherDevice class inherit EtherObject.

This avoids having to define two parallel versions of the getEthPort
function, and the complex dynamic_cast macrame in connectPorts().

Change-Id: I24c09864005ff39a049e50d7245ff17e9480edea
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17029
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/dev/net/Ethernet.py
src/dev/net/etherdevice.hh