Revision 73b01960 hw/ppc4xx_devs.c
b/hw/ppc4xx_devs.c | ||
---|---|---|
183 | 183 |
ppcuic_trigger_irq(uic); |
184 | 184 |
} |
185 | 185 |
|
186 |
static target_ulong dcr_read_uic (void *opaque, int dcrn)
|
|
186 |
static uint32_t dcr_read_uic (void *opaque, int dcrn)
|
|
187 | 187 |
{ |
188 | 188 |
ppcuic_t *uic; |
189 |
target_ulong ret;
|
|
189 |
uint32_t ret;
|
|
190 | 190 |
|
191 | 191 |
uic = opaque; |
192 | 192 |
dcrn -= uic->dcr_base; |
... | ... | |
229 | 229 |
return ret; |
230 | 230 |
} |
231 | 231 |
|
232 |
static void dcr_write_uic (void *opaque, int dcrn, target_ulong val)
|
|
232 |
static void dcr_write_uic (void *opaque, int dcrn, uint32_t val)
|
|
233 | 233 |
{ |
234 | 234 |
ppcuic_t *uic; |
235 | 235 |
|
236 | 236 |
uic = opaque; |
237 | 237 |
dcrn -= uic->dcr_base; |
238 |
LOG_UIC("%s: dcr %d val " TARGET_FMT_lx "\n", __func__, dcrn, val);
|
|
238 |
LOG_UIC("%s: dcr %d val 0x%x\n", __func__, dcrn, val);
|
|
239 | 239 |
switch (dcrn) { |
240 | 240 |
case DCR_UICSR: |
241 | 241 |
uic->uicsr &= ~val; |
... | ... | |
448 | 448 |
} |
449 | 449 |
} |
450 | 450 |
|
451 |
static target_ulong dcr_read_sdram (void *opaque, int dcrn)
|
|
451 |
static uint32_t dcr_read_sdram (void *opaque, int dcrn)
|
|
452 | 452 |
{ |
453 | 453 |
ppc4xx_sdram_t *sdram; |
454 |
target_ulong ret;
|
|
454 |
uint32_t ret;
|
|
455 | 455 |
|
456 | 456 |
sdram = opaque; |
457 | 457 |
switch (dcrn) { |
... | ... | |
516 | 516 |
return ret; |
517 | 517 |
} |
518 | 518 |
|
519 |
static void dcr_write_sdram (void *opaque, int dcrn, target_ulong val)
|
|
519 |
static void dcr_write_sdram (void *opaque, int dcrn, uint32_t val)
|
|
520 | 520 |
{ |
521 | 521 |
ppc4xx_sdram_t *sdram; |
522 | 522 |
|
Also available in: Unified diff