aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-08-28 10:02:46 +0100
committerPeter Maydell <peter.maydell@linaro.org>2020-08-28 10:02:46 +0100
commit55d35c881924ce5a8ce410210865e47553762847 (patch)
treebadf2043f16c61963a61ac5c7e69b9ddbf16c6c2 /include/hw
parenta12b4c53cbf4d5e75f0e88d624c196d8b71256f4 (diff)
downloadqemu-55d35c881924ce5a8ce410210865e47553762847.zip
qemu-55d35c881924ce5a8ce410210865e47553762847.tar.gz
qemu-55d35c881924ce5a8ce410210865e47553762847.tar.bz2
hw/misc/unimp: Display the offset with width of the region size
To have a better idea of how big is the region where the offset belongs, display the value with the width of the region size (i.e. a region of 0x1000 bytes uses 0x000 format). Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20200812190206.31595-4-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/misc/unimp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/misc/unimp.h b/include/hw/misc/unimp.h
index 4c1d13c..c63968a 100644
--- a/include/hw/misc/unimp.h
+++ b/include/hw/misc/unimp.h
@@ -20,6 +20,7 @@
typedef struct {
SysBusDevice parent_obj;
MemoryRegion iomem;
+ unsigned offset_fmt_width;
char *name;
uint64_t size;
} UnimplementedDeviceState;