summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-12-17 07:12:13 +0100
committerAndreas Färber <afaerber@suse.de>2013-02-16 14:50:59 +0100
commit0d34282fdde1d8f337d2a9e10f5ac793b12ef2e7 (patch)
treee4a26af7c6a412c3f9c3fefde289add21fd7c5ad /dump.c
parent6ae064fc671f1c475b1371c067fa3100ec6daf80 (diff)
downloadqemu-0d34282fdde1d8f337d2a9e10f5ac793b12ef2e7.tar.gz
qemu-0d34282fdde1d8f337d2a9e10f5ac793b12ef2e7.tar.bz2
qemu-0d34282fdde1d8f337d2a9e10f5ac793b12ef2e7.zip
cpu: Move host_tid field to CPUState
Change gdbstub's cpu_index() argument to CPUState now that CPUArchState is no longer used. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/dump.c b/dump.c
index 4ed1fa8622..a25f5096eb 100644
--- a/dump.c
+++ b/dump.c
@@ -271,11 +271,13 @@ static int write_elf64_note(DumpState *s)
static int write_elf64_notes(DumpState *s)
{
CPUArchState *env;
+ CPUState *cpu;
int ret;
int id;
for (env = first_cpu; env != NULL; env = env->next_cpu) {
- id = cpu_index(env);
+ cpu = ENV_GET_CPU(env);
+ id = cpu_index(cpu);
ret = cpu_write_elf64_note(fd_write_vmcore, env, id, s);
if (ret < 0) {
dump_error(s, "dump: failed to write elf notes.\n");
@@ -321,11 +323,13 @@ static int write_elf32_note(DumpState *s)
static int write_elf32_notes(DumpState *s)
{
CPUArchState *env;
+ CPUState *cpu;
int ret;
int id;
for (env = first_cpu; env != NULL; env = env->next_cpu) {
- id = cpu_index(env);
+ cpu = ENV_GET_CPU(env);
+ id = cpu_index(cpu);
ret = cpu_write_elf32_note(fd_write_vmcore, env, id, s);
if (ret < 0) {
dump_error(s, "dump: failed to write elf notes.\n");