diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-11-08 12:50:21 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2009-11-14 02:25:52 +0100 |
commit | 51cc2e783af5586b2e742ce9e5b2762dc50ad325 (patch) | |
tree | fcf63925e69d7af5a6e5528045d8dcf69066e572 /target-mips/cpu.h | |
parent | fc8e320ef5831dc0b0d744e369537893a4379753 (diff) |
mips: fix cpu_reset memory leak
Remove cpu_mips_register()
- move mmu_init(), fpu_init() and mvp_init() into cpu_mips_init()
- move the other parts in cpu_mips_init()
Reported-by: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-mips/cpu.h')
-rw-r--r-- | target-mips/cpu.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target-mips/cpu.h b/target-mips/cpu.h index c27738ac47..cefa5ae58e 100644 --- a/target-mips/cpu.h +++ b/target-mips/cpu.h @@ -175,8 +175,6 @@ struct CPUMIPSState { TCState active_tc; CPUMIPSFPUContext active_fpu; - CPUMIPSMVPContext *mvp; - CPUMIPSTLBContext *tlb; uint32_t current_tc; uint32_t current_fpu; @@ -458,6 +456,9 @@ struct CPUMIPSState { CPU_COMMON + CPUMIPSMVPContext *mvp; + CPUMIPSTLBContext *tlb; + const mips_def_t *cpu_model; void *irq[8]; struct QEMUTimer *timer; /* Internal timer */ |