systemctlm-cosim-demo icon indicating copy to clipboard operation
systemctlm-cosim-demo copied to clipboard

QEMU hangs after remote_port connection

Open jonmcdonald opened this issue 4 years ago • 17 comments

Hello,

I am trying to go through the systemctlm-cosim-demo using the zynq platform. I have gone through the following steps:

  1. Built a petalinux project which properly boots linux.
  2. Included the zynq-pl-remoteport.dtsi. The instructions referenced at http://www.wiki.xilinx.com/QEMU+SystemC+and+TLM+CoSimulation referenced paths in the project which did not exist. The dtsi was included based on the instructions in http://blog.reds.ch/?p=1180.
  3. Built the systemctlm-cosim-demo using g++ 7.3.1. Tried with Systemc versions 2.3.2 and 2.3.3 with the same result.

When I execute petalinux-boot --qemu --kernel --qemu-args "-hw-dtb ./qemu_cosim/qemu_hw_system.dtb -machine-path ./qemu_cosim -icount 1 -sync-quantum 10000" qemu appears to be executed and I get the message qemu-system-aarch64: info: QEMU waiting for connection on: disconnected:unix:./qemu_cosim/qemu-rport-_cosim@0,server

I then start the systemc example with LD_LIBRARY_PATH=/home/tools/systemc/SystemC-2.3.3/lib-linux64 ./zynq_demo unix:/home/jon/work/xilinx/petalinux/test/qemu_cosim/qemu-rport-_cosim@0 10000. I modified the systemc to print out a message each second of simulation time. Simulation time progresses on the systemc side. On the qemu side I get a message which is the first message I see when booting qemu without the remoteport.dtsi included. qemu-system-aarch64: warning: hub 0 is not connected to host network. No messages from qemu after that.

When I kill the systemc simulation I get the following from qemu, qemu-system-aarch64: /cosim@0: Disconnected clk=74225145930 ns. The time varies depending on how long I have let it run, but no other messages.

Any suggestions on what might be causing qemu to hang?

Thanks, Jon

jonmcdonald avatar Jul 14 '20 21:07 jonmcdonald