changeset f2ac8da7896e in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=f2ac8da7896e
description:
        IDE,X86: Fix IDE controller BAR configuration for x86.

diffstat:

 src/dev/ide_ctrl.cc |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r e10aff32c561 -r f2ac8da7896e src/dev/ide_ctrl.cc
--- a/src/dev/ide_ctrl.cc       Sat Nov 20 12:12:27 2010 -0800
+++ b/src/dev/ide_ctrl.cc       Mon Nov 22 02:33:47 2010 -0500
@@ -107,11 +107,11 @@
     primary.select(false);
     secondary.select(false);
 
-    if ((BARAddrs[0] & ~BAR_IO_MASK) != 0){
+    if ((BARAddrs[0] & ~BAR_IO_MASK) && !legacyIO[0]){
         primary.cmdAddr = BARAddrs[0];  primary.cmdSize = BARSize[0];
         primary.ctrlAddr = BARAddrs[1]; primary.ctrlSize = BARAddrs[1];
     }
-    if ((BARAddrs[2] & ~BAR_IO_MASK) != 0){
+    if ((BARAddrs[2] & ~BAR_IO_MASK) && !legacyIO[2]){
         secondary.cmdAddr = BARAddrs[2];  secondary.cmdSize = BARSize[2];
         secondary.ctrlAddr = BARAddrs[3]; secondary.ctrlSize = BARAddrs[3];
     }
_______________________________________________
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to