fw: Prefix all HTIF console I/O functions with htif_

This commit is contained in:
Michael Cardell Widerkrantz 2022-12-02 15:09:10 +01:00
parent fbe71e1466
commit 65bc96a725
No known key found for this signature in database
GPG key ID: D3DB3DDF57E704E5
5 changed files with 70 additions and 69 deletions

View file

@ -153,8 +153,9 @@ you can use with host software to talk to the firmware.
To quit QEMU you can use: `Ctrl-a x` (see `Ctrl-a ?` for other commands).
Debugging? Use the HTIF console by removing `-DNOCONSOLE` from the
`CFLAGS` and using the helper functions in `lib.c` like `puts()`
`putinthex()` `hexdump()` and friends for printf-like debugging.
`CFLAGS` and using the helper functions in `lib.c` like `htif_puts()`
`htif_putinthex()` `htif_hexdump()` and friends for printf-like
debugging.
You can also use the qemu monitor for debugging, e.g. `info
registers`, or run qemu with `-d in_asm` or `-d trace:riscv_trap`.