Skip to contentSkip to conversation

AT91 Debug Unit

PATCH In review Filip Navara 1 participant 1 message Jul 15, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/14 AT91 Debug Unit

The debug unit is implemented as serial character device hosted on the system bus. Only the most basic features are emulated to allow capturing the output and receiving external input. No actual timing is emulated based on the baud rate register, although the information is passed to the backend driver using the qemu_chr_ioctl API.

A two-byte FIFO transmission register, channel mode (normal, local feedback, remote feedback) and in-circuit emulator (ICE) pins are not emulated. Emulating the first two features would be straightforward. Emulating the ICE communication is possible, but changes to CPU emulation are required to accomplish it. The benefits for debugging would probably not be very high since the built-in QEMU debugger is much more powerful.

---
 Makefile.target |    2 +-
 hw/at91_dbgu.c  |  321 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 322 insertions(+), 1 deletions(-)
 create mode 100644 hw/at91_dbgu.c
Makefile.target +1 -1
index ecaba36..5501371 100644
@@ -666,7 +666,7 @@ obj-y += framebuffer.o
 obj-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o
 obj-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o
 obj-y += syborg_virtio.o
-obj-y += at91_aic.o at91_pmc.o
+obj-y += at91_aic.o at91_dbgu.o at91_pmc.o
 obj-y += gpio_rotary.o gpio_keypad.o
 CPPFLAGS += -DHAS_AUDIO
 endif
hw/at91_dbgu.c new file +321 -0

321 lines not on this page · raw message

Signature · 1 line
1.6.3.msysgit.0