system/physmem: use return value of ram_block_discard_require() as errno
[qemu/armbru.git] / docs / system / target-rx.rst
blob4a20a89a064ce3c3316f934281779634edae6612
1 .. _RX-System-emulator:
3 RX System emulator
4 --------------------
6 Use the executable ``qemu-system-rx`` to simulate RX target (GDB simulator).
7 This target emulated following devices.
9 -  R5F562N8 MCU
11    -  On-chip memory (ROM 512KB, RAM 96KB)
12    -  Interrupt Control Unit (ICUa)
13    -  8Bit Timer x 1CH (TMR0,1)
14    -  Compare Match Timer x 2CH (CMT0,1)
15    -  Serial Communication Interface x 1CH (SCI0)
17 -  External memory 16MByte
19 Example of ``qemu-system-rx`` usage for RX is shown below:
21 Download ``<u-boot_image_file>`` from
22 https://osdn.net/users/ysato/pf/qemu/dl/u-boot.bin.gz
24 Start emulation of rx-virt::
25   qemu-system-rx -M gdbsim-r5f562n8 -bios <u-boot_image_file>
27 Download ``kernel_image_file`` from
28 https://osdn.net/users/ysato/pf/qemu/dl/zImage
30 Download ``device_tree_blob`` from
31 https://osdn.net/users/ysato/pf/qemu/dl/rx-virt.dtb
33 Start emulation of rx-virt::
34   qemu-system-rx -M gdbsim-r5f562n8 \
35       -kernel <kernel_image_file> -dtb <device_tree_blob> \
36       -append "earlycon"