target-ppc: QOM'ify CPU

Embed CPUPPCState as first member of PowerPCCPU.
Distinguish between "powerpc-cpu", "powerpc64-cpu" and
"embedded-powerpc-cpu".

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

Signed-off-by: Andreas Färber <afaerber@suse.de>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
Andreas Färber 2012-04-06 14:39:03 +02:00
parent 12b1143b28
commit 1d0cb67da9
4 changed files with 119 additions and 1 deletions

View file

@ -1096,6 +1096,8 @@ struct mmu_ctx_t {
};
#endif
#include "cpu-qom.h"
/*****************************************************************************/
CPUPPCState *cpu_ppc_init (const char *cpu_model);
void ppc_translate_init(void);