diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-01-18 20:14:54 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-01-18 20:47:55 -0500 |
commit | cc67f780ecdb8a5c50eaae9e04b7fc11ce23ddba (patch) | |
tree | c8445fbe78b1e5a2599e45689cf67e14938ceaf7 /sim/common/cgen-scache.c | |
parent | 7fd14d6f580eeed46ef4d6f04f6b5f2f1318c0f9 (diff) | |
download | gdb-cc67f780ecdb8a5c50eaae9e04b7fc11ce23ddba.zip gdb-cc67f780ecdb8a5c50eaae9e04b7fc11ce23ddba.tar.gz gdb-cc67f780ecdb8a5c50eaae9e04b7fc11ce23ddba.tar.bz2 |
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.
Diffstat (limited to 'sim/common/cgen-scache.c')
-rw-r--r-- | sim/common/cgen-scache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/cgen-scache.c b/sim/common/cgen-scache.c index f087dc7..c6de30e 100644 --- a/sim/common/cgen-scache.c +++ b/sim/common/cgen-scache.c @@ -420,7 +420,7 @@ scache_lookup_or_alloc (SIM_CPU *cpu, IADDR pc, int n, SCACHE **bufp) /* Print cache access statics for CPU. */ void -scache_print_profile (SIM_CPU *cpu, int verbose) +scache_print_profile (SIM_CPU *cpu, bool verbose) { SIM_DESC sd = CPU_STATE (cpu); unsigned long hits = CPU_SCACHE_HITS (cpu); |