hw/pl061: Use LOG_GUEST_ERROR
Use LOG_GUEST_ERROR to report guest attempts to access bad register offsets. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
fbfecf43e9
commit
abff909c94
|
@ -164,7 +164,8 @@ static uint64_t pl061_read(void *opaque, hwaddr offset,
|
||||||
case 0x528: /* Analog mode select */
|
case 0x528: /* Analog mode select */
|
||||||
return s->amsel;
|
return s->amsel;
|
||||||
default:
|
default:
|
||||||
hw_error("pl061_read: Bad offset %x\n", (int)offset);
|
qemu_log_mask(LOG_GUEST_ERROR,
|
||||||
|
"pl061_read: Bad offset %x\n", (int)offset);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -239,7 +240,8 @@ static void pl061_write(void *opaque, hwaddr offset,
|
||||||
s->amsel = value & 0xff;
|
s->amsel = value & 0xff;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
hw_error("pl061_write: Bad offset %x\n", (int)offset);
|
qemu_log_mask(LOG_GUEST_ERROR,
|
||||||
|
"pl061_write: Bad offset %x\n", (int)offset);
|
||||||
}
|
}
|
||||||
pl061_update(s);
|
pl061_update(s);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue