mirror of https://github.com/xemu-project/xemu.git
hw/misc/unimp: Display value after offset
To better align the read/write accesses, display the value after the offset (read accesses only display the offset). Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20200812190206.31595-2-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
739fa32554
commit
68274b945e
|
@ -22,7 +22,7 @@ static uint64_t unimp_read(void *opaque, hwaddr offset, unsigned size)
|
||||||
{
|
{
|
||||||
UnimplementedDeviceState *s = UNIMPLEMENTED_DEVICE(opaque);
|
UnimplementedDeviceState *s = UNIMPLEMENTED_DEVICE(opaque);
|
||||||
|
|
||||||
qemu_log_mask(LOG_UNIMP, "%s: unimplemented device read "
|
qemu_log_mask(LOG_UNIMP, "%s: unimplemented device read "
|
||||||
"(size %d, offset 0x%" HWADDR_PRIx ")\n",
|
"(size %d, offset 0x%" HWADDR_PRIx ")\n",
|
||||||
s->name, size, offset);
|
s->name, size, offset);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -34,9 +34,9 @@ static void unimp_write(void *opaque, hwaddr offset,
|
||||||
UnimplementedDeviceState *s = UNIMPLEMENTED_DEVICE(opaque);
|
UnimplementedDeviceState *s = UNIMPLEMENTED_DEVICE(opaque);
|
||||||
|
|
||||||
qemu_log_mask(LOG_UNIMP, "%s: unimplemented device write "
|
qemu_log_mask(LOG_UNIMP, "%s: unimplemented device write "
|
||||||
"(size %d, value 0x%" PRIx64
|
"(size %d, offset 0x%" HWADDR_PRIx
|
||||||
", offset 0x%" HWADDR_PRIx ")\n",
|
", value 0x%" PRIx64 ")\n",
|
||||||
s->name, size, value, offset);
|
s->name, size, offset, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const MemoryRegionOps unimp_ops = {
|
static const MemoryRegionOps unimp_ops = {
|
||||||
|
|
Loading…
Reference in New Issue