mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
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>
This commit is contained in:
parent
6adcba7c0a
commit
f07f246734
4 changed files with 21 additions and 12 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue