#######################################################################
# This is file which used to generate QEMU(which emulates A53 cores) 
# commandline(start_qemu.sh script) which used in ZynqMP HW-EMU. 
# This is a template file which is packaged in platform and it gets 
# processed by Vitis tool to generate meaningful file.
#
# This file contains flag and value pairs and they must be seperated 
# into two lines value followed by flag. Below are the common/mandated 
# flag and value pairs used for emulating ZynqMP. User can add more 
# commandline args to this file depends on requirements.
# 
# For more details on the QEMU commandline, please refer to 
# the QEMU user guide UG1169.
########################################################################
#
#
# selects emulated machine
-M
arm-generic-fdt
#
#
# redirect the serial port to specified char dev (i.e stdio, tcp port, file etc)
#-serial
#mon:stdio
#
#
# Creating a chardev device for stdio as backend and both UART0(-serial) and
# moniter uses this chardev device for outputs. Here all the UART0 and moniter 
# logs are redirected to qemu_output.log
-chardev
stdio,id=serial2,logfile=qemu_output.log,mux=on,signal=off
-serial
chardev:serial2
-mon
serial2
#
#
# Make the specified cpu come out of reset (ZynqMP specific)
-global
xlnx,zynqmp-boot.cpu-num=0
#
#
# Handovers static pmc config data to pmufw  (ZynqMP specific)
-global
xlnx,zynqmp-boot.use-pmufw=true
#
#
# initialize network interface gem0
-net
nic
#
#
# initialize network interface gem1
-net
nic
#
#
# initialize network interface gem2
-net
nic
#
#
# initialize network interface gem3
-net
nic
#
#
# Connect the previous mentioned network adaptor to user mode network
-net
user
#
#
# Mention the ddr size according to support ddr address space
-m
4G
#
#
# Dtb file which describes PS which is emulated by QEMU can be specifed using -hw-dtb 
# (By default Vitis tool provides standard dtb, But user can specify dtb).
#-hw-dtb
#<path-to-ps-dtb>
//<copyright-disclaimer-start>
//  **************************************************************************************************************
//  * © 2026 Advanced Micro Devices, Inc. All rights reserved.                                                  *
//  * DISCLAIMER                                                                                                 *
//  * The information contained herein is for informational purposes only, and is subject to change              *
//  * without notice. While every precaution has been taken in the preparation of this document, it              *
//  * may contain technical inaccuracies, omissions and typographical errors, and AMD is under no                *
//  * obligation to update or otherwise correct this information.  Advanced Micro Devices, Inc. makes            *
//  * no representations or warranties with respect to the accuracy or completeness of the contents of           *
//  * this document, and assumes no liability of any kind, including the implied warranties of noninfringement,  *
//  * merchantability or fitness for particular purposes, with respect to the operation or use of AMD            *
//  * hardware, software or other products described herein.  No license, including implied or                   *
//  * arising by estoppel, to any intellectual property rights is granted by this document.  Terms and           *
//  * limitations applicable to the purchase or use of AMD’s products are as set forth in a signed agreement   *
//  * between the parties or in AMD's Standard Terms and Conditions of Sale. GD-18                               *
//  *                                                                                                            *
//  **************************************************************************************************************
//<copyright-disclaimer-end>