Alex Richardson has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/68477?usp=email )

Change subject: configs: Make riscv/fs_linux.py work again after f3e94849
......................................................................

configs: Make riscv/fs_linux.py work again after f3e94849

Without this change, trying to use fs_linux.py will panic with the
following message:
`panic: Pio port of system.platform.pci_host not connected to anything!.`

Change-Id: I7ae73f5cc12d8e7a4599b2792587437a6066c657
---
M configs/example/riscv/fs_linux.py
1 file changed, 5 insertions(+), 0 deletions(-)



diff --git a/configs/example/riscv/fs_linux.py b/configs/example/riscv/fs_linux.py
index 1a98126..8183529 100644
--- a/configs/example/riscv/fs_linux.py
+++ b/configs/example/riscv/fs_linux.py
@@ -42,6 +42,7 @@
 import sys
 from os import path

+from gem5.utils.requires import requires
 import m5
 from m5.defines import buildEnv
 from m5.objects import *
@@ -63,6 +64,9 @@
 from common.Caches import *
 from common import Options

+# Run a check to ensure the right version of gem5 is being used.
+requires(isa_required=ISA.RISCV)
+
 # ------------------------- Usage Instructions ------------------------- #
 # Common system confirguration options (cpu types, num cpus, checkpointing
 # etc.) should be supported
@@ -212,6 +216,7 @@

 system.platform.attachOnChipIO(system.membus)
 system.platform.attachOffChipIO(system.iobus)
+system.platform.pci_host.pio = system.iobus.mem_side_ports
 system.platform.attachPlic()
 system.platform.setNumCores(np)


--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/68477?usp=email To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I7ae73f5cc12d8e7a4599b2792587437a6066c657
Gerrit-Change-Number: 68477
Gerrit-PatchSet: 1
Gerrit-Owner: Alex Richardson <alexrichard...@google.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org

Reply via email to