target-mips: QOM'ify CPU

Embed CPUMIPSState as first member of QOM MIPSCPU.

Let CPUClass::reset() call cpu_state_reset() for now.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
Andreas Färber 2012-04-15 23:29:19 +02:00
parent 11150915fc
commit 0f71a7095d
5 changed files with 142 additions and 1 deletions

View file

@ -483,6 +483,8 @@ struct CPUMIPSState {
struct QEMUTimer *timer; /* Internal timer */
};
#include "cpu-qom.h"
#if !defined(CONFIG_USER_ONLY)
int no_mmu_map_address (CPUMIPSState *env, target_phys_addr_t *physical, int *prot,
target_ulong address, int rw, int access_type);