In this article we shall use the QEMU to emulate a Microblaze system. We shall use the GDB debugger, to debug a standalone
Hello World Application. The recommended flow is to use QEMU via the Petalinux tool, however, users can use the DeviceTree Generator (DTG), and DeviceTree Compiler
from github to do this manually. It is this flow that is discussed here.

Creating the Hardware

User can create the design using the Vivado IP Integrator tool (see related links). Export to SDK, to create the HDF file.
This HDF file is to be used to create the devicetree that is used in QEMU

Creating the devicetree

Xilinx provide a devicetree generator (DTG) to create devicetree from a HDF file

Launching QEMU

Note: Here users can ether pass the bootloop elf, or the actual executable that they want to test.

Launching debugger and connecting to QEMU

Currently, the XSDB debugger does not support the Microblaze via QEMU. Users, can use the GDB debugger.
Users can connect to the debugger using the target remote: <port> command

Since the Microblaze is configured to use Little Endian (this is hard-coded in the Microblaze config), then we must tell the debugger this.
Load the ELF, and symbol info and then user is ready to debug.