m68k hw/: Don't use CPUState
Scripted conversion: for file in hw/an5206.c hw/dummy_m68k.c hw/mcf.h hw/mcf5206.c hw/mcf5208.c hw/mcf_intc.c; do sed -i "s/CPUState/CPUM68KState/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
93a674024c
commit
7927df3a8b
@ -24,7 +24,7 @@ static void an5206_init(ram_addr_t ram_size,
|
||||
const char *kernel_filename, const char *kernel_cmdline,
|
||||
const char *initrd_filename, const char *cpu_model)
|
||||
{
|
||||
CPUState *env;
|
||||
CPUM68KState *env;
|
||||
int kernel_size;
|
||||
uint64_t elf_entry;
|
||||
target_phys_addr_t entry;
|
||||
|
@ -21,7 +21,7 @@ static void dummy_m68k_init(ram_addr_t ram_size,
|
||||
const char *kernel_filename, const char *kernel_cmdline,
|
||||
const char *initrd_filename, const char *cpu_model)
|
||||
{
|
||||
CPUState *env;
|
||||
CPUM68KState *env;
|
||||
MemoryRegion *address_space_mem = get_system_memory();
|
||||
MemoryRegion *ram = g_new(MemoryRegion, 1);
|
||||
int kernel_size;
|
||||
|
4
hw/mcf.h
4
hw/mcf.h
@ -17,7 +17,7 @@ void mcf_uart_mm_init(struct MemoryRegion *sysmem,
|
||||
/* mcf_intc.c */
|
||||
qemu_irq *mcf_intc_init(struct MemoryRegion *sysmem,
|
||||
target_phys_addr_t base,
|
||||
CPUState *env);
|
||||
CPUM68KState *env);
|
||||
|
||||
/* mcf_fec.c */
|
||||
void mcf_fec_init(struct MemoryRegion *sysmem, NICInfo *nd,
|
||||
@ -25,6 +25,6 @@ void mcf_fec_init(struct MemoryRegion *sysmem, NICInfo *nd,
|
||||
|
||||
/* mcf5206.c */
|
||||
qemu_irq *mcf5206_init(struct MemoryRegion *sysmem,
|
||||
uint32_t base, CPUState *env);
|
||||
uint32_t base, CPUM68KState *env);
|
||||
|
||||
#endif
|
||||
|
@ -145,7 +145,7 @@ static m5206_timer_state *m5206_timer_init(qemu_irq irq)
|
||||
/* System Integration Module. */
|
||||
|
||||
typedef struct {
|
||||
CPUState *env;
|
||||
CPUM68KState *env;
|
||||
MemoryRegion iomem;
|
||||
m5206_timer_state *timer[2];
|
||||
void *uart[2];
|
||||
@ -525,7 +525,7 @@ static const MemoryRegionOps m5206_mbar_ops = {
|
||||
.endianness = DEVICE_NATIVE_ENDIAN,
|
||||
};
|
||||
|
||||
qemu_irq *mcf5206_init(MemoryRegion *sysmem, uint32_t base, CPUState *env)
|
||||
qemu_irq *mcf5206_init(MemoryRegion *sysmem, uint32_t base, CPUM68KState *env)
|
||||
{
|
||||
m5206_mbar_state *s;
|
||||
qemu_irq *pic;
|
||||
|
@ -192,7 +192,7 @@ static void mcf5208evb_init(ram_addr_t ram_size,
|
||||
const char *kernel_filename, const char *kernel_cmdline,
|
||||
const char *initrd_filename, const char *cpu_model)
|
||||
{
|
||||
CPUState *env;
|
||||
CPUM68KState *env;
|
||||
int kernel_size;
|
||||
uint64_t elf_entry;
|
||||
target_phys_addr_t entry;
|
||||
|
@ -16,7 +16,7 @@ typedef struct {
|
||||
uint64_t ifr;
|
||||
uint64_t enabled;
|
||||
uint8_t icr[64];
|
||||
CPUState *env;
|
||||
CPUM68KState *env;
|
||||
int active_vector;
|
||||
} mcf_intc_state;
|
||||
|
||||
@ -139,7 +139,7 @@ static const MemoryRegionOps mcf_intc_ops = {
|
||||
|
||||
qemu_irq *mcf_intc_init(MemoryRegion *sysmem,
|
||||
target_phys_addr_t base,
|
||||
CPUState *env)
|
||||
CPUM68KState *env)
|
||||
{
|
||||
mcf_intc_state *s;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user