mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-10-06 19:19:41 +00:00
f07f246734
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>
52 lines
754 B
C
52 lines
754 B
C
#include "qemu/osdep.h"
|
|
#include "qapi/error.h"
|
|
#include "sysemu/cpu-timers.h"
|
|
|
|
/* icount - Instruction Counter API */
|
|
|
|
int use_icount;
|
|
|
|
void icount_update(CPUState *cpu)
|
|
{
|
|
abort();
|
|
}
|
|
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)
|
|
{
|
|
abort();
|
|
return 0;
|
|
}
|
|
int64_t icount_get(void)
|
|
{
|
|
abort();
|
|
return 0;
|
|
}
|
|
int64_t icount_to_ns(int64_t icount)
|
|
{
|
|
abort();
|
|
return 0;
|
|
}
|
|
int64_t icount_round(int64_t count)
|
|
{
|
|
abort();
|
|
return 0;
|
|
}
|
|
void icount_start_warp_timer(void)
|
|
{
|
|
abort();
|
|
}
|
|
void icount_account_warp_timer(void)
|
|
{
|
|
abort();
|
|
}
|
|
|
|
void icount_notify_exit(void)
|
|
{
|
|
}
|