diff options
author | Philippe Mathieu-Daudé | 2020-08-28 11:02:46 +0200 |
---|---|---|
committer | Peter Maydell | 2020-08-28 11:02:46 +0200 |
commit | 55d35c881924ce5a8ce410210865e47553762847 (patch) | |
tree | badf2043f16c61963a61ac5c7e69b9ddbf16c6c2 /include/hw/misc/unimp.h | |
parent | hw/misc/unimp: Display the value with width of the access size (diff) | |
download | qemu-55d35c881924ce5a8ce410210865e47553762847.tar.gz qemu-55d35c881924ce5a8ce410210865e47553762847.tar.xz qemu-55d35c881924ce5a8ce410210865e47553762847.zip |
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/misc/unimp.h')
-rw-r--r-- | include/hw/misc/unimp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/misc/unimp.h b/include/hw/misc/unimp.h index 4c1d13c9bf..c63968a2cd 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; |