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 /stubs | |
parent | 6adcba7c0a58fe9d1b74c4af3dd881253b3a94dd (diff) |
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 'stubs')
-rw-r--r-- | stubs/icount.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stubs/icount.c b/stubs/icount.c index 6df8c2bf7d..85c381a0ea 100644 --- a/stubs/icount.c +++ b/stubs/icount.c @@ -10,10 +10,12 @@ void icount_update(CPUState *cpu) { abort(); } -void icount_configure(QemuOpts *opts, Error **errp) +bool icount_configure(QemuOpts *opts, Error **errp) { /* signal error */ error_setg(errp, "cannot configure icount, TCG support not available"); + + return false; } int64_t icount_get_raw(void) { |