@@ -191,8 +191,8 @@ void qemu_thread_create(QemuThread *thread, const char *name,
void *arg, int mode);
int qemu_thread_set_affinity(QemuThread *thread, unsigned long *host_cpus,
unsigned long nbits);
-int qemu_thread_get_affinity(QemuThread *thread, unsigned long **host_cpus,
- unsigned long *nbits);
+int qemu_thread_get_affinity(const QemuThread *thread,
+ unsigned long **host_cpus, unsigned long *nbits);
void *qemu_thread_join(QemuThread *thread);
void qemu_thread_get_self(QemuThread *thread);
bool qemu_thread_is_self(QemuThread *thread);
@@ -617,8 +617,8 @@ int qemu_thread_set_affinity(QemuThread *thread, unsigned long *host_cpus,
#endif
}
-int qemu_thread_get_affinity(QemuThread *thread, unsigned long **host_cpus,
- unsigned long *nbits)
+int qemu_thread_get_affinity(const QemuThread *thread,
+ unsigned long **host_cpus, unsigned long *nbits)
{
#if defined(CONFIG_PTHREAD_AFFINITY_NP)
unsigned long tmpbits;
@@ -513,8 +513,8 @@ int qemu_thread_set_affinity(QemuThread *thread, unsigned long *host_cpus,
return -ENOSYS;
}
-int qemu_thread_get_affinity(QemuThread *thread, unsigned long **host_cpus,
- unsigned long *nbits)
+int qemu_thread_get_affinity(const QemuThread *thread,
+ unsigned long **host_cpus, unsigned long *nbits)
{
return -ENOSYS;
}
QemuThread structure is not modified, only read. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- include/qemu/thread.h | 4 ++-- util/qemu-thread-posix.c | 4 ++-- util/qemu-thread-win32.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-)