Platform constructors should have a trait Platform which allows handing the constructor a filesystem and getting a memory bus out of it. This should be roughly equivalent to the existing construct_platform methods, but with the ability to hand more than one file to the constructor.
with_architecture! can then lose the file parameter, as not all architecture-specific code needs to have a working memory bus.
Platform constructors should have a trait
Platform
which allows handing the constructor a filesystem and getting a memory bus out of it. This should be roughly equivalent to the existingconstruct_platform
methods, but with the ability to hand more than one file to the constructor.with_architecture!
can then lose thefile
parameter, as not all architecture-specific code needs to have a working memory bus.