[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 02/14] cpus: prepare new CpusAccel cpu accelerator interfa
From: |
Richard Henderson |
Subject: |
Re: [PATCH v5 02/14] cpus: prepare new CpusAccel cpu accelerator interface |
Date: |
Fri, 14 Aug 2020 13:28:06 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 8/12/20 11:32 AM, Claudio Fontana wrote:
> uint64_t cpu_get_tsc(CPUX86State *env)
> {
> - return cpu_get_ticks();
> + return cpus_get_elapsed_ticks();
What has this change got to do with creating the interface?
You said the interface wasn't used yet...
> diff --git a/stubs/cpu-synchronize-state.c b/stubs/cpu-synchronize-state.c
> new file mode 100644
> index 0000000000..3112fe439d
> --- /dev/null
> +++ b/stubs/cpu-synchronize-state.c
> @@ -0,0 +1,15 @@
> +#include "qemu/osdep.h"
> +#include "sysemu/hw_accel.h"
> +
> +void cpu_synchronize_state(CPUState *cpu)
> +{
> +}
> +void cpu_synchronize_post_reset(CPUState *cpu)
> +{
> +}
> +void cpu_synchronize_post_init(CPUState *cpu)
> +{
> +}
> +void cpu_synchronize_pre_loadvm(CPUState *cpu)
> +{
> +}
> diff --git a/stubs/cpus-get-virtual-clock.c b/stubs/cpus-get-virtual-clock.c
> new file mode 100644
> index 0000000000..fd447d53f3
> --- /dev/null
> +++ b/stubs/cpus-get-virtual-clock.c
> @@ -0,0 +1,8 @@
> +#include "qemu/osdep.h"
> +#include "sysemu/cpu-timers.h"
> +#include "qemu/main-loop.h"
> +
> +int64_t cpus_get_virtual_clock(void)
> +{
> + return cpu_get_clock();
> +}
How do these stubs get used?
r~
- [PATCH v5 00/14] QEMU cpus.c refactoring part2, Claudio Fontana, 2020/08/12
- [PATCH v5 01/14] cpu-timers, icount: new modules, Claudio Fontana, 2020/08/12
- [PATCH v5 04/14] cpus: extract out qtest-specific code to accel/qtest, Claudio Fontana, 2020/08/12
- [PATCH v5 02/14] cpus: prepare new CpusAccel cpu accelerator interface, Claudio Fontana, 2020/08/12
- Re: [PATCH v5 02/14] cpus: prepare new CpusAccel cpu accelerator interface,
Richard Henderson <=
- [PATCH v5 03/14] cpus: extract out TCG-specific code to accel/tcg, Claudio Fontana, 2020/08/12
- [PATCH v5 06/14] cpus: extract out hax-specific code to target/i386/, Claudio Fontana, 2020/08/12
- [PATCH v5 11/14] hvf: remove hvf specific functions from global includes, Claudio Fontana, 2020/08/12
- [PATCH v5 09/14] cpus: cleanup now unneeded includes, Claudio Fontana, 2020/08/12