diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-12-08 12:35:23 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-19 12:28:59 +0100 |
commit | f07f246734e271b368bfc9afc4cbc437999d58ea (patch) | |
tree | a3c017d559a12c78f5116ad3d8beb17d02698eec /include/sysemu | |
parent | 6adcba7c0a58fe9d1b74c4af3dd881253b3a94dd (diff) | |
download | qemu-f07f246734e271b368bfc9afc4cbc437999d58ea.zip qemu-f07f246734e271b368bfc9afc4cbc437999d58ea.tar.gz qemu-f07f246734e271b368bfc9afc4cbc437999d58ea.tar.bz2 |
system/cpu-timers: Have icount_configure() return a boolean
Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have icount_configure()
return a boolean indicating whether an error is set or not.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231208113529.74067-2-philmd@linaro.org>
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/cpu-timers.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/sysemu/cpu-timers.h b/include/sysemu/cpu-timers.h index 2e786fe..b70dc76 100644 --- a/include/sysemu/cpu-timers.h +++ b/include/sysemu/cpu-timers.h @@ -50,8 +50,14 @@ int64_t icount_get(void); */ int64_t icount_to_ns(int64_t icount); -/* configure the icount options, including "shift" */ -void icount_configure(QemuOpts *opts, Error **errp); +/** + * icount_configure: configure the icount options, including "shift" + * @opts: Options to parse + * @errp: pointer to a NULL-initialized error object + * + * Return: true on success, else false setting @errp with error + */ +bool icount_configure(QemuOpts *opts, Error **errp); /* used by tcg vcpu thread to calc icount budget */ int64_t icount_round(int64_t count); |