hw/pl011: Use LOG_UNIMP and LOG_GUEST_ERROR
Use the new LOG_UNIMP and LOG_GUEST_ERROR logging types rather than hw_error(). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
fd271e81aa
commit
6d5433e00a
11
hw/pl011.c
11
hw/pl011.c
@ -107,7 +107,8 @@ static uint64_t pl011_read(void *opaque, target_phys_addr_t offset,
|
|||||||
case 18: /* UARTDMACR */
|
case 18: /* UARTDMACR */
|
||||||
return s->dmacr;
|
return s->dmacr;
|
||||||
default:
|
default:
|
||||||
hw_error("pl011_read: Bad offset %x\n", (int)offset);
|
qemu_log_mask(LOG_GUEST_ERROR,
|
||||||
|
"pl011_read: Bad offset %x\n", (int)offset);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -178,11 +179,13 @@ static void pl011_write(void *opaque, target_phys_addr_t offset,
|
|||||||
break;
|
break;
|
||||||
case 18: /* UARTDMACR */
|
case 18: /* UARTDMACR */
|
||||||
s->dmacr = value;
|
s->dmacr = value;
|
||||||
if (value & 3)
|
if (value & 3) {
|
||||||
hw_error("PL011: DMA not implemented\n");
|
qemu_log_mask(LOG_UNIMP, "pl011: DMA not implemented\n");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
hw_error("pl011_write: Bad offset %x\n", (int)offset);
|
qemu_log_mask(LOG_GUEST_ERROR,
|
||||||
|
"pl011_write: Bad offset %x\n", (int)offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user