merge zynq/pcie code
fix read length errors for zynq