Hi Priyanka,

I think adding something like the following line in your script should
solve the problem you are running into:

system.platform.pci_host.pio = system.iobus.mem_side_ports

-Ayaz

On Tue, Jan 24, 2023 at 6:48 AM Priyanka Ankolekar via gem5-users <
gem5-users@gem5.org> wrote:

> Hello,
>
> I am trying to run RISCV in bare-metal mode using the fs_linux.py script.
> Here is the command I am using:
>
> /build/RISCV/gem5.opt --debug-start=0 --debug-flags=Exec
> --debug-file=trace.out ./configs/example/riscv/fs_linux.py --bare-metal
> --kernel ../riscv-tests/benchmarks/dhrystone.riscv
>
> I get this error message which seems to suggest that the pci_host needs is
> not tied off correctly. I am running this script as is from the repo.
>
>
> warn: The `get_runtime_isa` function is deprecated. Please migrate away
> from using this function.
>
> Global frequency set at 1000000000000 ticks per second
>
> warn: No dot file generated. Please install pydot to generate the dot file
> and pdf.
>
> build/RISCV/mem/dram_interface.cc:690: warn: DRAM device capacity (8192
> Mbytes) does not match the address range assigned (512 Mbytes)
>
> system.platform.terminal: Listening for connections on port 3456
>
> 0: system.remote_gdb: listening for remote gdb on port 7000
>
> build/RISCV/dev/io_device.cc:62: panic: Pio port of
> system.platform.pci_host not connected to anything!
>
> Memory Usage: 621368 KBytes
>
> Program aborted at tick 0
>
> --- BEGIN LIBC BACKTRACE ---
>
> ./build/RISCV/gem5.opt(+0x736170)[0x55f0810bd170]
>
> ./build/RISCV/gem5.opt(+0x75ba7c)[0x55f0810e2a7c]
>
> /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f8a37b2e520]
>
> /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7f8a37b82a7c]
>
> /lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7f8a37b2e476]
>
> /lib/x86_64-linux-gnu/libc.so.6(abort+0xd3)[0x7f8a37b147f3]
>
> ./build/RISCV/gem5.opt(+0x463d55)[0x55f080dead55]
>
> ./build/RISCV/gem5.opt(+0x12cec1e)[0x55f081c55c1e]
>
> ./build/RISCV/gem5.opt(+0x63ddc3)[0x55f080fc4dc3]
>
> ./build/RISCV/gem5.opt(+0x5412a2)[0x55f080ec82a2]
>
> /lib/x86_64-linux-gnu/libpython3.10.so.1.0(+0x12b6d3)[0x7f8a386526d3]
>
>
> /lib/x86_64-linux-gnu/libpython3.10.so.1.0(_PyObject_MakeTpCall+0x8c)[0x7f8a3860d1ac]
>
> /lib/x86_64-linux-gnu/libpython3.10.so.1.0(+0xe765a)[0x7f8a3860e65a]
>
>
> /lib/x86_64-linux-gnu/libpython3.10.so.1.0(_PyEval_EvalFrameDefault+0x9d78)[0x7f8a385a29b8]
>
> /lib/x86_64-linux-gnu/libpython3.10.so.1.0(+0x1c681f)[0x7f8a386ed81f]
>
>
> /lib/x86_64-linux-gnu/libpython3.10.so.1.0(_PyEval_EvalFrameDefault+0x9d78)[0x7f8a385a29b8]
>
> /lib/x86_64-linux-gnu/libpython3.10.so.1.0(+0x1c681f)[0x7f8a386ed81f]
>
>
> /lib/x86_64-linux-gnu/libpython3.10.so.1.0(_PyEval_EvalFrameDefault+0x9d78)[0x7f8a385a29b8]
>
> /lib/x86_64-linux-gnu/libpython3.10.so.1.0(+0x1c681f)[0x7f8a386ed81f]
>
>
> /lib/x86_64-linux-gnu/libpython3.10.so.1.0(PyEval_EvalCode+0xbe)[0x7f8a386e894e]
>
> /lib/x86_64-linux-gnu/libpython3.10.so.1.0(+0x1c1edd)[0x7f8a386e8edd]
>
> /lib/x86_64-linux-gnu/libpython3.10.so.1.0(+0x12eb13)[0x7f8a38655b13]
>
>
> /lib/x86_64-linux-gnu/libpython3.10.so.1.0(_PyEval_EvalFrameDefault+0x69ee)[0x7f8a3859f62e]
>
> /lib/x86_64-linux-gnu/libpython3.10.so.1.0(+0x1c681f)[0x7f8a386ed81f]
>
> ./build/RISCV/gem5.opt(+0x6365f7)[0x55f080fbd5f7]
>
> ./build/RISCV/gem5.opt(+0x39b858)[0x55f080d22858]
>
> /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f8a37b15d90]
>
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f8a37b15e40]
>
> ./build/RISCV/gem5.opt(+0x45d3a5)[0x55f080de43a5]
>
> --- END LIBC BACKTRACE ---
>
> Aborted (core dumped)
>
> The dhrystone.riscv file is of this type:
>
> ../riscv-tests/benchmarks/dhrystone.riscv: ELF 64-bit LSB executable, UCB
> RISC-V, RVC, double-float ABI, version 1 (SYSV), statically linked, not
> stripped
>
> Am I running this correctly? What am I missing here?
>
> Thank you for your help.
>
> Priyanka.
> _______________________________________________
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
>
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to