aboutsummaryrefslogtreecommitdiff
path: root/include/hw/char/pl011.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/char/pl011.h')
-rw-r--r--include/hw/char/pl011.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/hw/char/pl011.h b/include/hw/char/pl011.h
index d853802..299ca9b 100644
--- a/include/hw/char/pl011.h
+++ b/include/hw/char/pl011.h
@@ -32,7 +32,6 @@ struct PL011State {
SysBusDevice parent_obj;
MemoryRegion iomem;
- uint32_t readbuff;
uint32_t flags;
uint32_t lcr;
uint32_t rsr;
@@ -53,6 +52,11 @@ struct PL011State {
Clock *clk;
bool migrate_clk;
const unsigned char *id;
+ /*
+ * Since some users embed this struct directly, we must
+ * ensure that the C struct is at least as big as the Rust one.
+ */
+ uint8_t padding_for_rust[16];
};
DeviceState *pl011_create(hwaddr addr, qemu_irq irq, Chardev *chr);