dev: Make the IDE controller handle NULL simobject pointers.
authorGabe Black <gabeblack@google.com>
Tue, 26 Sep 2017 00:53:57 +0000 (17:53 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 26 Sep 2017 23:47:24 +0000 (23:47 +0000)
commit5a27a68c736eb1d295e52e0d5cdd106942ffd6f2
tree5fbadbd4252ed27a1c47a2a615033c21992135a9
parent9747cacf97d952ef597328c2c442700d951e26f6
dev: Make the IDE controller handle NULL simobject pointers.

Only panic if there are disks which would actually be connected to it beyond
its limit. Also skip past disks which are set to NULL. This is useful since
it lets you set up disks on different ports of the controller instead of
filling them contiguously.

Change-Id: I92f1316d3ad6931e25bfffeb34fb2603c0b95ce7
Reviewed-on: https://gem5-review.googlesource.com/4848
Maintainer: Gabe Black <gabeblack@google.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
src/dev/storage/ide_ctrl.cc