mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
ppc hw/: Don't use CPUState
Scripted conversion: for file in hw/ppc*.[hc] hw/mpc8544_guts.c hw/spapr*.[hc] hw/virtex_ml507.c hw/xics.c; do sed -i "s/CPUState/CPUPPCState/g" $file done Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
61c56c8c86
commit
e2684c0b58
23 changed files with 183 additions and 183 deletions
|
@ -56,7 +56,7 @@ static struct boot_info
|
|||
} boot_info;
|
||||
|
||||
/* Create reset TLB entries for BookE, spanning the 32bit addr space. */
|
||||
static void mmubooke_create_initial_mapping(CPUState *env,
|
||||
static void mmubooke_create_initial_mapping(CPUPPCState *env,
|
||||
target_ulong va,
|
||||
target_phys_addr_t pa)
|
||||
{
|
||||
|
@ -78,12 +78,12 @@ static void mmubooke_create_initial_mapping(CPUState *env,
|
|||
tlb->PID = 0;
|
||||
}
|
||||
|
||||
static CPUState *ppc440_init_xilinx(ram_addr_t *ram_size,
|
||||
static CPUPPCState *ppc440_init_xilinx(ram_addr_t *ram_size,
|
||||
int do_init,
|
||||
const char *cpu_model,
|
||||
uint32_t sysclk)
|
||||
{
|
||||
CPUState *env;
|
||||
CPUPPCState *env;
|
||||
qemu_irq *irqs;
|
||||
|
||||
env = cpu_init(cpu_model);
|
||||
|
@ -106,7 +106,7 @@ static CPUState *ppc440_init_xilinx(ram_addr_t *ram_size,
|
|||
|
||||
static void main_cpu_reset(void *opaque)
|
||||
{
|
||||
CPUState *env = opaque;
|
||||
CPUPPCState *env = opaque;
|
||||
struct boot_info *bi = env->load_info;
|
||||
|
||||
cpu_state_reset(env);
|
||||
|
@ -188,7 +188,7 @@ static void virtex_init(ram_addr_t ram_size,
|
|||
{
|
||||
MemoryRegion *address_space_mem = get_system_memory();
|
||||
DeviceState *dev;
|
||||
CPUState *env;
|
||||
CPUPPCState *env;
|
||||
target_phys_addr_t ram_base = 0;
|
||||
DriveInfo *dinfo;
|
||||
MemoryRegion *phys_ram = g_new(MemoryRegion, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue