Revision 36081602 hw/ppc_prep.c

b/hw/ppc_prep.c
76 76
int speaker_data_on;
77 77
int dummy_refresh_clock;
78 78

  
79
static void speaker_ioport_write(void *opaque, uint32_t addr, uint32_t val)
79
static void speaker_ioport_write (void *opaque, uint32_t addr, uint32_t val)
80 80
{
81 81
#if 0
82 82
    speaker_data_on = (val >> 1) & 1;
......
110 110

  
111 111
    if (addr == 0xBFFFFFF0)
112 112
        retval = pic_intack_read(isa_pic);
113
       //   printf("%s: 0x%08x <= %d\n", __func__, addr, retval);
113
    //   printf("%s: 0x%08x <= %d\n", __func__, addr, retval);
114 114

  
115 115
    return retval;
116 116
}
......
177 177
    /* Error diagnostic */
178 178
} XCSR;
179 179

  
180
static void PPC_XCSR_writeb (void *opaque, target_phys_addr_t addr, uint32_t value)
180
static void PPC_XCSR_writeb (void *opaque,
181
                             target_phys_addr_t addr, uint32_t value)
181 182
{
182 183
    printf("%s: 0x%08lx => 0x%08x\n", __func__, (long)addr, value);
183 184
}
184 185

  
185
static void PPC_XCSR_writew (void *opaque, target_phys_addr_t addr, uint32_t value)
186
static void PPC_XCSR_writew (void *opaque,
187
                             target_phys_addr_t addr, uint32_t value)
186 188
{
187 189
#ifdef TARGET_WORDS_BIGENDIAN
188 190
    value = bswap16(value);
......
190 192
    printf("%s: 0x%08lx => 0x%08x\n", __func__, (long)addr, value);
191 193
}
192 194

  
193
static void PPC_XCSR_writel (void *opaque, target_phys_addr_t addr, uint32_t value)
195
static void PPC_XCSR_writel (void *opaque,
196
                             target_phys_addr_t addr, uint32_t value)
194 197
{
195 198
#ifdef TARGET_WORDS_BIGENDIAN
196 199
    value = bswap32(value);
......
664 667
    cpu_register_physical_memory(0xBFFFFFF0, 0x4, PPC_io_memory);
665 668
    /* PowerPC control and status register group */
666 669
#if 0
667
    PPC_io_memory = cpu_register_io_memory(0, PPC_XCSR_read, PPC_XCSR_write, NULL);
670
    PPC_io_memory = cpu_register_io_memory(0, PPC_XCSR_read, PPC_XCSR_write,
671
                                           NULL);
668 672
    cpu_register_physical_memory(0xFEFF0000, 0x1000, PPC_io_memory);
669 673
#endif
670 674

  

Also available in: Unified diff