mirror of https://github.com/xemu-project/xemu.git
hw/pl050: Use LOG_GUEST_ERROR
Use LOG_GUEST_ERROR for reporting guest attempts to access invalid register offsets. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
7f0f774003
commit
fbfecf43e9
|
@ -95,7 +95,8 @@ static uint64_t pl050_read(void *opaque, hwaddr offset,
|
||||||
case 4: /* KMIIR */
|
case 4: /* KMIIR */
|
||||||
return s->pending | 2;
|
return s->pending | 2;
|
||||||
default:
|
default:
|
||||||
hw_error("pl050_read: Bad offset %x\n", (int)offset);
|
qemu_log_mask(LOG_GUEST_ERROR,
|
||||||
|
"pl050_read: Bad offset %x\n", (int)offset);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -123,7 +124,8 @@ static void pl050_write(void *opaque, hwaddr offset,
|
||||||
s->clk = value;
|
s->clk = value;
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
hw_error("pl050_write: Bad offset %x\n", (int)offset);
|
qemu_log_mask(LOG_GUEST_ERROR,
|
||||||
|
"pl050_write: Bad offset %x\n", (int)offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static const MemoryRegionOps pl050_ops = {
|
static const MemoryRegionOps pl050_ops = {
|
||||||
|
|
Loading…
Reference in New Issue