sim: info: convert verbose field to a bool

The verbose argument has always been an int treated as a bool, so
convert it to an explicit bool.  Further, update the API docs to
match the reality that the verbose value is actually used by some
of the internal modules.
This commit is contained in:
Mike Frysinger
2023-01-18 20:14:54 -05:00
parent 7fd14d6f58
commit cc67f780ec
21 changed files with 31 additions and 30 deletions

View File

@ -20,6 +20,7 @@
#ifndef SIM_SIM_H
#define SIM_SIM_H 1
#include <stdbool.h>
#include <stdint.h>
#ifdef __cplusplus
@ -197,9 +198,9 @@ int sim_store_register (SIM_DESC sd, int regno, const void *buf, int length);
/* Print whatever statistics the simulator has collected.
VERBOSE is currently unused and must always be zero. */
When VERBOSE is enabled, extra details will be shown. */
void sim_info (SIM_DESC sd, int verbose);
void sim_info (SIM_DESC sd, bool verbose);
/* Return a memory map in XML format.