diff options
author | Sascha Bischoff <sascha.bischoff@arm.com> | 2017-03-24 16:02:30 +0000 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2017-04-03 16:36:15 +0000 |
commit | d7aef8be964b5f7eee2dace0cfc347fb23fa7ab2 (patch) | |
tree | 7d75cd25df5e346e35e8b5aa52c1cdd5150a462f /ext/dramsim2 | |
parent | ba00d7449df87c99bf8aca97a877b493c14f4866 (diff) | |
download | gem5-d7aef8be964b5f7eee2dace0cfc347fb23fa7ab2.tar.xz |
dev: Align BAR0 size to power of 2 for VirtIO devices
When setting the size of a PCI BAR, the kernel only supports powers of
two (as per the PCI spec). Previously, the size was incorrectly read
by the kernel, and the address ranges assigned to the PCI devices
could overlap, resulting in gem5 crashes. We now round up to the next
power of two.
Kudos to Sergei Trofimov who helped to debug this issue!
Change-Id: I54ca399b62ea07c09d4cd989b17dfa670e841bbe
Reviewed-by: Anouk Van Laer <anouk.vanlaer@arm.com>
Reviewed-by: Sergei Trofimov <sergei.trofimov@arm.com>
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/2580
Reviewed-by: Paul Rosenfeld <prosenfeld@micron.com>
Diffstat (limited to 'ext/dramsim2')
0 files changed, 0 insertions, 0 deletions