• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..15-Sep-2020-

Makefile.objsH A D15-Sep-2020123 54

READMEH A D15-Sep-20201.5 KiB4635

TODOH A D15-Sep-202023 21

cpu-param.hH A D15-Sep-2020364 188

cpu-qom.hH A D15-Sep-20201.5 KiB5317

cpu.cH A D15-Sep-20207 KiB266198

cpu.hH A D15-Sep-20206.6 KiB263180

gdbstub.cH A D15-Sep-20202.5 KiB9366

helper.cH A D15-Sep-20206.3 KiB225174

helper.hH A D15-Sep-2020512 1514

lm32-semi.cH A D15-Sep-20205.3 KiB213164

machine.cH A D15-Sep-20201,011 3431

op_helper.cH A D15-Sep-20203.1 KiB149119

translate.cH A D15-Sep-202032.9 KiB1,2381,012

README

1LatticeMico32 target
2--------------------
3
4General
5-------
6All opcodes including the JUART CSRs are supported.
7
8
9JTAG UART
10---------
11JTAG UART is routed to a serial console device. For the current boards it
12is the second one. Ie to enable it in the qemu virtual console window use
13the following command line parameters:
14  -serial vc -serial vc
15This will make serial0 (the lm32_uart) and serial1 (the JTAG UART)
16available as virtual consoles.
17
18
19Semihosting
20-----------
21Semihosting on this target is supported. Some system calls like read, write
22and exit are executed on the host if semihosting is enabled. See
23target/lm32-semi.c for all supported system calls. Emulation aware programs
24can use this mechanism to shut down the virtual machine and print to the
25host console. See the tcg tests for an example.
26
27
28Special instructions
29--------------------
30The translation recognizes one special instruction to halt the cpu:
31  and r0, r0, r0
32On real hardware this instruction is a nop. It is not used by GCC and
33should (hopefully) not be used within hand-crafted assembly.
34Insert this instruction in your idle loop to reduce the cpu load on the
35host.
36
37
38Ignoring the MSB of the address bus
39-----------------------------------
40Some SoC ignores the MSB on the address bus. Thus creating a shadow memory
41area. As a general rule, 0x00000000-0x7fffffff is cached, whereas
420x80000000-0xffffffff is not cached and used to access IO devices. This
43behaviour can be enabled with:
44  cpu_lm32_set_phys_msb_ignore(env, 1);
45
46