diff options
author | Juan Quintela <quintela@redhat.com> | 2012-05-13 19:32:54 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-05-13 19:58:23 +0200 |
commit | 0c9dfe460d0c239cc0dc78d6223118cb63261b45 (patch) | |
tree | 004739268d849c8f4bdaa97c5c565538bea07cca /hw/qdev-monitor.c | |
parent | c115cd65784a349aeb4f261d3f327225192ef5a1 (diff) |
mips_fulong2e: Don't register "cpu" VMState twice
We have the following simplified callgraph in mips_fulong2e_init():
cpu_init() => cpu_mips_init()
object_new()
mips_cpu_initfn()
cpu_exec_init()
register_savevm(NULL, "cpu", cpu_index, CPU_SAVE_VERSION,
cpu_save, cpu_load, env)
register_savevm(NULL, "cpu", 0, 3, cpu_save, cpu_load, env)
CPU_SAVE_VERSION is defined as 3 in target-mips/cpu.h.
fulong2e instantiates one CPU, so its cpu_index is 0.
Thus the two are fully identical.
Therefore just remove the second call in fulong2e.
Signed-off-by: Juan Quintela <quintela@redhat.com>
[AF: Extend explanation in commit message]
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/qdev-monitor.c')
0 files changed, 0 insertions, 0 deletions